ci_insights

Get a single CI queue stat as a time series

Return one of the CI queue stats bucketed over the requested time range, with a summary value over the full window.

get/ci/{owner}/queue/stats/{stat}

Path parameters

stat'total_jobs' | 'avg_wait_time' | 'min_wait_time' | 'median_wait_time' | 'p95_wait_time' | 'p99_wait_time' | 'max_wait_time' required
ownerstring required

The owner of the repository

The owner of the repository

Query parameters

labelsstring[] nullable

The labels to filter on (all must match)

The labels to filter on (all must match)

startstring date-time nullable

Start of the time range: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to end - 1 day when omitted; a paginated response carries the resolved value in its Link header.

Start of the time range: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to end - 1 day when omitted; a paginated response carries the resolved value in its Link header.

endstring date-time nullable

End of the time range: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to start + 1 day when only start is provided, or now otherwise; a paginated response carries the resolved value in its Link header.

End of the time range: an ISO 8601 datetime with a UTC offset (e.g. 2024-01-01T00:00:00Z); a Unix timestamp or a datetime without an offset is refused. Defaults to start + 1 day when only start is provided, or now otherwise; a paginated response carries the resolved value in its Link header.

Response

Successful Response

stat'total_jobs' | 'avg_wait_time' | 'min_wait_time' | 'median_wait_time' | 'p95_wait_time' | 'p99_wait_time' | 'max_wait_time' required
valueinteger nullable required

Changes