Package org.mockserver.slo
Class SloObjectiveResult
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.slo.SloObjectiveResult
The evaluated outcome of a single
SloObjective: the observed indicator
value over the window and whether it satisfied the threshold. observedValue
is null (and result is SloVerdict.Result.INCONCLUSIVE) when the
indicator could not be computed — e.g. error rate over zero requests.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSli()doublewithComparator(SloObjective.Comparator comparator) withDetail(String detail) withObservedValue(Double observedValue) withResult(SloVerdict.Result result) 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
-
SloObjectiveResult
public SloObjectiveResult()
-
-
Method Details
-
getSli
-
withSli
-
getComparator
-
withComparator
-
getThreshold
public double getThreshold() -
withThreshold
-
getObservedValue
-
withObservedValue
-
getResult
-
withResult
-
getDetail
-
withDetail
-