Package org.mockserver.slo
Class SloCriteria
java.lang.Object
org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
org.mockserver.model.ObjectWithJsonToString
org.mockserver.slo.SloCriteria
A resilience verdict request: a named set of
SloObjectives evaluated
synchronously over an already-elapsed SloWindow. Submitted to
PUT /mockserver/verifySLO and answered with an SloVerdict.
All objectives must hold for the criteria to PASS. The
minimumSampleCount guard yields INCONCLUSIVE when there are
too few samples in the window to draw a verdict. An optional
upstreamHosts filter narrows evaluation to specific upstreams;
null/empty means aggregate across all hosts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()static SloCriteriawithMinimumSampleCount(Integer minimumSampleCount) withObjectives(List<SloObjective> objectives) withObjectives(SloObjective... objectives) withUpstreamHosts(Set<String> upstreamHosts) withWindow(SloWindow window) Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
-
Constructor Details
-
SloCriteria
public SloCriteria()
-
-
Method Details
-
sloCriteria
-
getName
-
withName
-
getWindow
-
withWindow
-
getObjectives
-
withObjectives
-
withObjectives
-
getMinimumSampleCount
-
withMinimumSampleCount
-
getUpstreamHosts
-
withUpstreamHosts
-