Class LoadScenarioOrchestrator.LoadScenarioStatus

java.lang.Object
org.mockserver.mock.action.http.LoadScenarioOrchestrator.LoadScenarioStatus
Enclosing class:
LoadScenarioOrchestrator

public static final class LoadScenarioOrchestrator.LoadScenarioStatus extends Object
Immutable snapshot of a load scenario's progress, serialized by the GET endpoint.
  • Field Details

    • name

      public final String name
    • state

      public final LoadScenarioState 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

      public final String runId
    • startedAtEpochMillis

      public final long startedAtEpochMillis
    • endedAtEpochMillis

      public final Long endedAtEpochMillis
    • labels

      public final Map<String,String> labels
      Scenario-level custom annotation labels (null when none), echoed for dashboards/clients.
    • scenario

      public final LoadScenario scenario
      The full scenario definition this run was started with (never null for a real run). The GET endpoint serializes it under definition so any client/dashboard can load the exact LoadScenario back into an author form and round-trip it as a PUT body.
    • stageIndex

      public final int stageIndex
      The 0-based index of the currently-running stage, or -1 when not running.
    • stageType

      public final String stageType
      The type of the currently-running stage (VU/RATE/PAUSE), or null.
    • currentTarget

      public final double currentTarget
      The current setpoint for the running stage: target VUs for a VU stage, target arrival rate (iterations/second) for a RATE stage, 0 for PAUSE or when not running.
    • startDelayMillis

      public final long startDelayMillis
      The 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)