Job timeseries data

GET {{baseUrl}}/insights/time-series/:project-slug/workflows/:workflow-name/jobs?branch=consequat est&timeseries-granularity=hourly&start-date=2020-08-21T13:26:29Z&end-date=2020-09-04T13:26:29Z

Get timeseries data for all jobs within a workflow.

Request Params

KeyDatatypeRequiredDescription
branchstringThe name of a vcs branch. If not passed we will scope the API call to the default branch.
timeseries-granularitystringThe granularity for which to query timeseries data.
start-datestringInclude only executions that started at or after this date. This must be specified if an end-date is provided.
end-datestringInclude only executions that started before this date. This date can be at most 90 days after the start-date.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"next_page_token":"culpa qui","items":[{"name":"build-and-test","min_started_at":"1961-11-01T14:08:09.227Z","max_ended_at":"1989-11-01T04:45:50.417Z","timestamp":"1998-09-18T08:01:14.684Z","metrics":{"total_runs":68362984,"failed_runs":99106126,"successful_runs":32273176,"throughput":69998914.10013959,"median_credits_used":34846718,"total_credits_used":12918424,"duration_metrics":{"min":57940865,"median":72506975,"max":88773594,"p95":5900279,"total":73736641}}},{"name":"build-and-test","min_started_at":"1950-08-17T14:37:45.689Z","max_ended_at":"1993-09-18T11:06:04.670Z","timestamp":"1961-10-23T04:35:17.739Z","metrics":{"total_runs":59381885,"failed_runs":40055675,"successful_runs":41853615,"throughput":17599558.91125773,"median_credits_used":67557797,"total_credits_used":48034679,"duration_metrics":{"min":49163836,"median":37005033,"max":22042583,"p95":56225417,"total":24629976}}}]}