k6 threshold
A k6 threshold is a pass or fail rule applied to a measured metric, such as p(99)<300 for request duration. It can include abortOnFail to stop the test when the specified performance requirement is breached.
Minimal example
thresholds: { http_req_duration: ['p(99)<300'] }