Get summary metrics and trends for a project across it's workflows and branches
GET {{baseUrl}}/insights/pages/:project-slug/summary?reporting-window=last-90-days
Get summary metrics and trends for a project at workflow and branch level. Workflow runs going back at most 90 days are included in the aggregation window. Trends are only supported upto last 30 days. Metrics are refreshed daily, and thus may not include executions from the last 24 hours. Please note that Insights is not a real time financial reporting tool and should not be used for credit reporting. The most up to date credit information can be found in Plan Overview in the CircleCI UI.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
reporting-window | string | The time window used to calculate summary metrics. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"org_id":{},"project_id":{},"project_data":{"metrics":{"total_runs":66303744,"total_duration_secs":79335909,"total_credits_used":92906754,"success_rate":-44701396.47185256,"throughput":-39870267.469945066},"trends":{"total_runs":69272700.66528529,"total_duration_secs":67033474.40319985,"total_credits_used":96086066.31820503,"success_rate":-27723748.1124942,"throughput":-65190123.19674147}},"project_workflow_data":[{"workflow_name":"build-and-test","metrics":{"total_credits_used":91982710,"p95_duration_secs":24769327.713027954,"total_runs":88261340,"success_rate":83891194.02596563},"trends":{"total_credits_used":36492031.4534719,"p95_duration_secs":-82301670.78658246,"total_runs":78467720.26941663,"success_rate":84560180.48258778}},{"workflow_name":"build-and-test","metrics":{"total_credits_used":84381551,"p95_duration_secs":53263698.77309495,"total_runs":43970117,"success_rate":76092841.17466867},"trends":{"total_credits_used":78870861.99992236,"p95_duration_secs":76350508.57862273,"total_runs":-31390173.08760716,"success_rate":-16619437.67766054}}],"project_workflow_branch_data":[{"workflow_name":"build-and-test","branch":"main","metrics":{"total_credits_used":50324874,"p95_duration_secs":37224632.45687568,"total_runs":74170487,"success_rate":72363954.95250782},"trends":{"total_credits_used":91045373.62594306,"p95_duration_secs":-77242151.29743706,"total_runs":-13945931.981200397,"success_rate":90534464.22207284}},{"workflow_name":"build-and-test","branch":"main","metrics":{"total_credits_used":69650387,"p95_duration_secs":8167515.816791847,"total_runs":93070809,"success_rate":-78018343.17236996},"trends":{"total_credits_used":-49363586.08512479,"p95_duration_secs":-13951783.162803143,"total_runs":-54562558.558865696,"success_rate":21265169.04750751}}],"all_branches":["main","main"],"all_workflows":["build-and-test","build-and-test"]}