Insights
How runs went over time, and flaky tests.
Every path is under /api/v1; see the API for authenticating, errors and rate
limits, and the schemas for the bodies.
Workload insights across the organization's projects (run:read)
GET /api/v1/orgs/{org}/insights
Reliability, speed, cost and right-sizing of the runs that finished in a range of days (UTC), from the daily rollup, over the projects whose runs the caller may read, with the breakdown by project. Prices only for callers with billing:manage.
| Parameter | In | Description |
|---|---|---|
org |
path | ID |
from |
query | string (date): First day (UTC), YYYY-MM-DD; 29 days before to by default. |
to |
query | string (date): Last day (UTC, included), YYYY-MM-DD; today by default. At most 400 days in all. |
Answers:
200: OK, InsightsReport
Errors: 400, 403, 404 (how errors look).
Workload insights of a project (run:read)
GET /api/v1/projects/{project}/insights
Reliability, speed, cost and right-sizing of the project's runs that finished in a range
of days (UTC), from the daily rollup: totals, every day, and by source,
template, flow step and runner class. Runs count on the day they finished; the rollup is
about a minute behind. Prices only for callers with billing:manage. At most one of
template, schedule, trigger and flow narrows it to the runs of a template (however they started) or those a schedule, trigger or stored flow started.
| Parameter | In | Description |
|---|---|---|
project |
path | ID |
template |
query | ID |
schedule |
query | ID |
trigger |
query | ID |
flow |
query | ID |
from |
query | string (date): First day (UTC), YYYY-MM-DD; 29 days before to by default. |
to |
query | string (date): Last day (UTC, included), YYYY-MM-DD; today by default. At most 400 days in all. |
Answers:
200: OK, InsightsReport
Errors: 400, 403, 404 (how errors look).
The project's flakiest tests over 30 days (run:read)
GET /api/v1/projects/{project}/flaky-tests
Decision 189. A test is flaky in a run when it failed in an earlier attempt (a retry, a GitHub check re-run, a flow step's re-run) and passed in this one, by its suite, class and name. At most 50, most often flaky first, then most recently.
| Parameter | In | Description |
|---|---|---|
project |
path | ID |
Answers:
200: OK, object with the fields below
| Field | Type | Description |
|---|---|---|
days |
integer, required | The window in days, 30. |
tests |
array of object, required |
Errors: 403, 404 (how errors look).