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 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 longfinal Longfinal longScenario-level custom annotation labels (null when none), echoed for dashboards/clients.final Stringfinal longfinal longfinal 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 long -
Constructor Summary
ConstructorsConstructorDescriptionLoadScenarioStatus(String name, LoadScenarioState state, long elapsedMillis, int currentVus, long requestsSent, long succeeded, long failed, long p50Millis, long p95Millis, long p99Millis, String runId, long startedAtEpochMillis, Long endedAtEpochMillis, Map<String, String> labels, LoadScenario scenario, int stageIndex, String stageType, double currentTarget, long startDelayMillis) -
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 -
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).
-
-
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, String runId, long startedAtEpochMillis, Long endedAtEpochMillis, Map<String, String> labels, LoadScenario scenario, int stageIndex, String stageType, double currentTarget, long startDelayMillis)
-