Get summary metrics with trends for the entire org, and for each project.

GET {{baseUrl}}/insights/:org-slug/summary?reporting-window=last-90-days

Gets aggregated summary metrics with trends for the entire org. Also gets aggregated metrics and trends for each project belonging to the org.

Request Params

KeyDatatypeRequiredDescription
reporting-windowstringThe time window used to calculate summary metrics.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"org_data":{"metrics":{"total_runs":18317788,"total_duration_secs":1926070,"total_credits_used":27895148,"success_rate":47459936.98767018,"throughput":8497942.451244399},"trends":{"total_runs":-96328730.13700128,"total_duration_secs":-81204241.36376046,"total_credits_used":24158090.090268523,"success_rate":30566349.809540763,"throughput":2074934.3110291213}},"org_project_data":[{"project_name":"api-preview-docs","metrics":{"total_credits_used":44332203,"total_duration_secs":95289783,"total_runs":18473437,"success_rate":91988644.59299988},"trends":{"total_credits_used":-20636676.107488096,"total_duration_secs":-17645711.154230654,"total_runs":38519063.89766726,"success_rate":-58891805.544597454}},{"project_name":"api-preview-docs","metrics":{"total_credits_used":46700167,"total_duration_secs":31660887,"total_runs":33866449,"success_rate":-237469.0854817927},"trends":{"total_credits_used":-13986252.071477428,"total_duration_secs":-61768409.117218815,"total_runs":-84825662.4606119,"success_rate":-83180609.65792929}}],"all_projects":["commodo Lo","Duis laborum magna dolor reprehende"]}