provider engineering_analyticsengineering_analytics GET
/api/projects/{project_id}/engineering_analytics/job_aggregates/ @utdk/posthog
/api/projects/{project_id}/engineering_analytics/job_aggregates/ engineering_analytics_job_aggregates
Per-job aggregates for one workflow over a window (default -30d), one row per de-sharded job name (matrix shards aggregate together), busiest first: queue p50, duration p50/p95, failure rate, retry pressure, run share (below 1.0 = conditional job), and billable cost. Jobs always need their run as context — this is the aggregate view; use workflow_jobs for one run's jobs. Empty when the job-level source isn't synced.
- branch query
- Optional exact git branch (head_branch) to scope results to, e.g. 'main'. Omit or leave blank to aggregate across all branches.
- string
- 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
- workflow_name query required
- Workflow name to aggregate jobs for.
- 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.engineeringAnalyticsJobAggregates()