ci_insights

Get a single CI queue stat as a time series

Changed on

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}

Request

  • Base URL: https://api.mergify.com/v1
  • URL: https://api.mergify.com/v1/ci/{owner}/queue/stats/{stat}
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • HTTP bearer

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

Query parameters

labelsstring[] nullable

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.

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.

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

    • info

      the endpoint scheme security MergifyTokenBearerAuth was added to the API

    • info

      the endpoint scheme security AdminApplicationKey was added to the API

    • info

      the endpoint scheme security ApplicationAuth was removed from the API