Package org.mockserver.slo
Class SloObjective
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.slo.SloObjective
A single objective within an
SloCriteria: one service-level indicator
compared against a threshold. All objectives of a criteria must hold for the
criteria to PASS (logical AND, see SloEvaluator).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumThe service-level indicator computed over the window. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScope()getSli()doublebooleansatisfiedBy(double observed) static SloObjectivewithComparator(SloObjective.Comparator comparator) withSli(SloObjective.Sli sli) withThreshold(double threshold) Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
-
Constructor Details
-
SloObjective
public SloObjective()
-
-
Method Details
-
sloObjective
-
getSli
-
withSli
-
getComparator
-
withComparator
-
getThreshold
public double getThreshold() -
withThreshold
-
getScope
-
withScope
-
satisfiedBy
public boolean satisfiedBy(double observed) - Returns:
- true when
observedsatisfies this objective'scomparatoragainst itsthreshold.
-