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
    • p999Millis

      public final long p999Millis
      The 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 droppedIterations
      Iterations that were due but never dispatched because a safety cap was hit (the sum of the rate_limit and inflight_cap throttles 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

      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).
    • verdict

      public final String verdict
      In-run threshold verdict: "PASS" (all thresholds satisfied), "FAIL" (any breached), or null when 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 abortedByThreshold
      True when this run was terminated early by an abortOnFail threshold breach.
    • thresholdResults

      public final List<LoadScenarioOrchestrator.ThresholdResult> thresholdResults
      Per-threshold results behind the verdict (empty when no thresholds / not evaluated).
    • checkResults

      public final List<LoadScenarioOrchestrator.CheckResult> checkResults
      Per-distinct-check pass/fail aggregates for the run's per-step LoadChecks (empty when no checks ran). Surfaced in the end-of-run report so a CI/dashboard sees which response assertions held.
  • Constructor Details