Package org.mockserver.mock.action.http
Class LoadScenarioOrchestrator.LoadScenarioStatus
java.lang.Object
org.mockserver.mock.action.http.LoadScenarioOrchestrator.LoadScenarioStatus
- Enclosing class:
- LoadScenarioOrchestrator
Immutable snapshot of a load scenario's progress, serialized by the GET endpoint.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanTrue when this run was terminated early by anabortOnFailthreshold breach.final doubleThe current setpoint for the running stage: target VUs for a VU stage, target arrival rate (iterations/second) for a RATE stage,0for PAUSE or when not running.final intfinal longIterations that were due but never dispatched because a safety cap was hit (the sum of therate_limitandinflight_capthrottles for this run).final longfinal Longfinal longScenario-level custom annotation labels (null when none), echoed for dashboards/clients.final Stringfinal longfinal longfinal longThe 99.9th-percentile coordinated-omission-corrected latency in milliseconds, read from the per-run HDR histogram (0 when no iteration has completed).final longfinal longfinal Stringfinal LoadScenarioThe full scenario definition this run was started with (never null for a real run).final intThe 0-based index of the currently-running stage, or-1when not running.final StringThe type of the currently-running stage (VU/RATE/PAUSE), or null.final longThe configured start delay in milliseconds (0 when none).final longfinal LoadScenarioStateLifecycle state of this run (PENDING/RUNNING/COMPLETED/STOPPED).final longPer-threshold results behind theverdict(empty when no thresholds / not evaluated).final StringIn-run threshold verdict:"PASS"(all thresholds satisfied),"FAIL"(any breached), ornullwhen the scenario has no thresholds or none has been evaluated yet (no request has been dispatched). -
Constructor Summary
ConstructorsConstructorDescriptionLoadScenarioStatus(String name, LoadScenarioState state, long elapsedMillis, int currentVus, long requestsSent, long succeeded, long failed, long p50Millis, long p95Millis, long p99Millis, long p999Millis, long droppedIterations, String runId, long startedAtEpochMillis, Long endedAtEpochMillis, Map<String, String> labels, LoadScenario scenario, int stageIndex, String stageType, double currentTarget, long startDelayMillis, String verdict, boolean abortedByThreshold, List<LoadScenarioOrchestrator.ThresholdResult> thresholdResults) -
Method Summary
-
Field Details
-
name
-
state
Lifecycle state of this run (PENDING/RUNNING/COMPLETED/STOPPED). -
elapsedMillis
public final long elapsedMillis -
currentVus
public final int currentVus -
requestsSent
public final long requestsSent -
succeeded
public final long succeeded -
failed
public final long failed -
p50Millis
public final long p50Millis -
p95Millis
public final long p95Millis -
p99Millis
public final long p99Millis -
p999Millis
public final long p999MillisThe 99.9th-percentile coordinated-omission-corrected latency in milliseconds, read from the per-run HDR histogram (0 when no iteration has completed). Surfaces deep-tail behaviour that p99 alone hides. -
droppedIterations
public final long droppedIterationsIterations that were due but never dispatched because a safety cap was hit (the sum of therate_limitandinflight_capthrottles for this run). The percentiles describe only the iterations that ran, so a non-zero value here is the truncated-distribution signal — the system-under-test could not keep up with the requested load. -
runId
-
startedAtEpochMillis
public final long startedAtEpochMillis -
endedAtEpochMillis
-
labels
Scenario-level custom annotation labels (null when none), echoed for dashboards/clients. -
scenario
The full scenario definition this run was started with (never null for a real run). The GET endpoint serializes it underdefinitionso any client/dashboard can load the exactLoadScenarioback into an author form and round-trip it as a PUT body. -
stageIndex
public final int stageIndexThe 0-based index of the currently-running stage, or-1when not running. -
stageType
The type of the currently-running stage (VU/RATE/PAUSE), or null. -
currentTarget
public final double currentTargetThe current setpoint for the running stage: target VUs for a VU stage, target arrival rate (iterations/second) for a RATE stage,0for PAUSE or when not running. -
startDelayMillis
public final long startDelayMillisThe configured start delay in milliseconds (0 when none). -
verdict
In-run threshold verdict:"PASS"(all thresholds satisfied),"FAIL"(any breached), ornullwhen the scenario has no thresholds or none has been evaluated yet (no request has been dispatched). A terminal"FAIL"should be mapped by clients to a non-zero CI exit code. -
abortedByThreshold
public final boolean abortedByThresholdTrue when this run was terminated early by anabortOnFailthreshold breach. -
thresholdResults
Per-threshold results behind theverdict(empty when no thresholds / not evaluated).
-
-
Constructor Details
-
LoadScenarioStatus
public LoadScenarioStatus(String name, LoadScenarioState state, long elapsedMillis, int currentVus, long requestsSent, long succeeded, long failed, long p50Millis, long p95Millis, long p99Millis, long p999Millis, long droppedIterations, String runId, long startedAtEpochMillis, Long endedAtEpochMillis, Map<String, String> labels, LoadScenario scenario, int stageIndex, String stageType, double currentTarget, long startDelayMillis, String verdict, boolean abortedByThreshold, List<LoadScenarioOrchestrator.ThresholdResult> thresholdResults)
-