DORA-style deploy metrics over the GitHub deployments + deployment_statuses warehouse pair, each headline with its previous-window twin: deployment frequency, merge-to-deploy lead time (with a per-bucket box-plot series), and honest proxies for change failure rate and time to restore (deploy-status based: no incident data is linked). deploy_data_available is false when the deploy tables aren't synced.
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/engineering_analytics/dora/
- Auth: HTTP bearer
Path parameters
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
Window start: relative ('-30d', '-8w') or ISO8601. Defaults to -30d.
Window end: relative or ISO8601. Defaults to now.
Deploy environment(s) to scope to, repeatable (from the response's environments list). Omit to include all persistent environments marked production or named prod/production (including regional suffixes), falling back to the busiest persistent environment when none match. Explicit names are trimmed, deduplicated, and validated against the source, including transient environments. Blank or unknown names are rejected with a 400 response.
GitHub team slug (from the response's github_teams list) to narrow the PR-scoped merge-to-deploy figures to that team's authors. Deploy counts stay repo-wide. Needs the team-membership snapshot synced; without it the merge-to-deploy figures return empty rather than silently unfiltered.
Bucket width for every series. Omit to pick one that fits the window: hour up to 48h, day up to 90 days, week beyond.
'owner/name' repository to scope to when the selected source syncs several repositories (from the sources list). Defaults to the source's first repository.
Connected GitHub data warehouse source to read from. Defaults to the oldest connected GitHub source when the team has more than one.
Response
Changes
No recorded changes to this operation across all 1 revision of this API.