provider engineering_analyticsengineering_analytics GET
/api/projects/{project_id}/engineering_analytics/repo_overview/ @utdk/posthog
/api/projects/{project_id}/engineering_analytics/repo_overview/ engineering_analytics_repo_overview
Repo-level headline aggregates over a window (default -30d): run count, success rate, re-run cycles, median PR open-to-merge (bots and drafts excluded; coarse — draft and ready time fused), and billable minutes + estimated cost — each with its equal-length previous-window twin so a caller can render honest deltas. Also carries the detected default branch and its completed-run history series. Cost figures are null until the job-level source is synced.
- date_from query
- Window start: relative ('-30d', '-8w') or ISO8601. Defaults to -30d.
- string
- date_to query
- Window end: relative or ISO8601. Defaults to now.
- string
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
- source_id query
- Connected GitHub data warehouse source to read from. Defaults to the oldest connected GitHub source when the team has more than one.
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.engineeringAnalyticsRepoOverview()