Retrieve flaky and total test counts for a workspace, broken down by test type
Returns workspace-wide test counts and flaky-test counts, both overall and broken down by test type, over a specified time range. A test is flaky when its flake_rate is 0.10 or higher (equivalently, stability_rate is 0.90 or lower) -- the same definition and threshold as testQuality's tests_above_flakiness_threshold summary field.
Unlike testQuality, this endpoint returns only aggregate counts, not per-test rows -- use it when a caller needs workspace-wide totals without paginating through every test.
POST + a request body (rather than query params, like the rest of this file's query* endpoints) because plan_labels is an unbounded array -- as a CSV query param it can grow the URL past what a client, proxy, or load balancer will send.
Path parameters
The workspace ID
Request body
Response
Flaky and total test counts for the specified time range