Package org.mockserver.mock.action.http
Class LoadScenarioOrchestrator.ThresholdResult
java.lang.Object
org.mockserver.mock.action.http.LoadScenarioOrchestrator.ThresholdResult
- Enclosing class:
- LoadScenarioOrchestrator
One per-threshold evaluation result, surfaced in the status DTO so a client/dashboard can show
which thresholds passed or breached and the observed value behind the verdict.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringTheSloObjective.Comparatorname (e.g.final StringTheLoadThreshold.Metricname (e.g.final doubleThe observed per-run value at evaluation time (latency ms, error-rate fraction, or rps).final booleanTrue whenobservedsatisfied the comparator againstthreshold.final doubleThe configured threshold value. -
Constructor Summary
ConstructorsConstructorDescriptionThresholdResult(String metric, String comparator, double threshold, double observed, boolean satisfied) -
Method Summary
-
Field Details
-
metric
TheLoadThreshold.Metricname (e.g.LATENCY_P95). -
comparator
TheSloObjective.Comparatorname (e.g.LESS_THAN). -
threshold
public final double thresholdThe configured threshold value. -
observed
public final double observedThe observed per-run value at evaluation time (latency ms, error-rate fraction, or rps). -
satisfied
public final boolean satisfiedTrue whenobservedsatisfied the comparator againstthreshold.
-
-
Constructor Details
-
ThresholdResult
-