Oore CI

Get build insights

Success rate, run time, queue wait, a daily trend, per-project health and the most-failing pipelines for builds the caller can see.

Operation IDget_build_insights
GET
/v1/builds/insights

Success rate, run time, queue wait, a daily trend, per-project health and the most-failing pipelines for builds the caller can see.

Authorization

bearer_auth
AuthorizationBearer <token>

In: header

Query Parameters

days?integer

Window length in days: 7 (default), 14, 30 or 90

Formatint64
project_id?string

Limit to one project

utc_offset_minutes?integer

Caller's UTC offset for daily buckets, -720 to 840 (default 0)

Formatint64

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/builds/insights"
{  "daily": [    {      "day_start": 0,      "failed": 0,      "other": 0,      "p50_duration_seconds": 0,      "succeeded": 0    }  ],  "duration": {    "p50_seconds": 0,    "p90_seconds": 0,    "samples": 0  },  "failing_pipelines": [    {      "current_streak": 0,      "failures": 0,      "finished": 0,      "last_failed_at": 0,      "last_failed_build_id": "string",      "last_failed_build_number": 0,      "pipeline_id": "string",      "pipeline_name": "string",      "project_id": "string",      "project_name": "string"    }  ],  "previous_duration": {    "p50_seconds": 0,    "p90_seconds": 0,    "samples": 0  },  "previous_totals": {    "canceled": 0,    "expired": 0,    "failed": 0,    "finished": 0,    "succeeded": 0,    "success_rate": 0,    "timed_out": 0  },  "projects": [    {      "duration": {        "p50_seconds": 0,        "p90_seconds": 0,        "samples": 0      },      "last_finished_at": 0,      "last_status": "queued",      "project_id": "string",      "project_name": "string",      "totals": {        "canceled": 0,        "expired": 0,        "failed": 0,        "finished": 0,        "succeeded": 0,        "success_rate": 0,        "timed_out": 0      }    }  ],  "queue": {    "awaiting_approval": 0,    "oldest_waiting_since": 0,    "running": 0,    "waiting": 0  },  "queue_wait": {    "p50_seconds": 0,    "p90_seconds": 0,    "samples": 0  },  "since": 0,  "totals": {    "canceled": 0,    "expired": 0,    "failed": 0,    "finished": 0,    "succeeded": 0,    "success_rate": 0,    "timed_out": 0  },  "window_days": 0}