How long a selected workflow, matrix, job or step usually takes: compares it with runs of the same workflow on the repository's default branch over the last 7 days, from stored data only. A run counts only when it ran the same jobs on the same runner tiers, so the answer never mixes in a different workflow, job or runner. Pull request runs and merge queue runs are left out. At most the newest 40 default-branch runs are checked, and sampled is true when more existed. average_seconds and sample_count cover successful samples only, and recent lists the newest three matches of any status. average_seconds is null when no comparable run exists. unavailable_reason says why no comparison was made. Answers are cached for 5 minutes.
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/engineering_analytics/ci_timing_context/
- 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
CI engine that ran the run.
- github_actions - GitHub Actions
- depot_ci - Depot CI
Comma-separated job ids from workflow_jobs, at most 200. Required for 'matrix', 'job' and 'step'. Give exactly one id for 'job' and 'step'. Ignored for 'workflow'.
What to compare: the whole 'workflow', a 'matrix' (several jobs of the run), one 'job', or one 'step' of a job.
- workflow - Workflow
- matrix - Matrix
- job - Job
- step - Step
'owner/name' repository the run belongs to.
Run attempt that holds the selection.
Integer run id of the run that holds the selection.
Connected GitHub data warehouse source to read from. Defaults to the source connected for repo.
Number of the step within the job. Required when kind is 'step'.
Response
Changes
No recorded changes to this operation across all 1 revision of this API.