pub struct RunReport {
pub version: u32,
pub run: RunMeta,
pub requests: RequestSummary,
pub latency: LatencyStats,
pub status_codes: BTreeMap<String, u64>,
pub response_stats: Option<ResponseStatsReport>,
pub curve_stages: Option<Vec<StageReport>>,
pub thresholds: Option<ThresholdReport>,
}Expand description
Versioned, serialization-ready report of a completed load test run.
This is the canonical contract between the Rust engine and all downstream
consumers (CLI JSON output, NestJS SaaS platform, CI pipelines, cloud mode).
The top-level version field allows consumers to gate on the schema version.
Fields§
§version: u32Schema version. Currently 2. Increment on any breaking schema change.
run: RunMeta§requests: RequestSummary§latency: LatencyStats§status_codes: BTreeMap<String, u64>HTTP status code counts keyed by string code (e.g. "200", "404").
The special key "error" covers connection errors with no HTTP response.
response_stats: Option<ResponseStatsReport>Present only when --response-template / --response-alias was used.
null when no response template was configured.
curve_stages: Option<Vec<StageReport>>Present only when mode == "curve". null in fixed mode.
thresholds: Option<ThresholdReport>Present when thresholds were evaluated after the run. null otherwise.
Implementations§
Source§impl RunReport
impl RunReport
Sourcepub fn from_params(params: RunReportParams<'_>) -> Self
pub fn from_params(params: RunReportParams<'_>) -> Self
Constructs a RunReport from a completed RunStats.
All derived metrics (percentiles, throughput, error rate, status code map, response stats, per-stage breakdowns) are computed here via the compute module functions.