Get structured metrics for a completed run
get_test_metricsParse k6 summary JSON into structured performance metrics: latency percentiles, error rate, RPS, and threshold pass/fail for accurate reporting.
Instructions
Parses the k6 summary JSON into deterministic structured metrics: overall + per-endpoint p50/p90/p95/p99 latency, error rate, RPS, and threshold pass/fail. Use this data (not raw k6 console output) to write the human-readable performance summary -- the numbers here are computed in code, not guessed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runDir | Yes | runDir returned by generate_k6_script, after run_load_test has completed |