provider engineering_analyticsengineering_analytics GET
/api/projects/{project_id}/engineering_analytics/run_failure_logs/ @utdk/posthog
/api/projects/{project_id}/engineering_analytics/run_failure_logs/ engineering_analytics_run_failure_logs
The thinned CI failure logs of one workflow run, grouped by failed job — the run-scoped twin of ci_failure_logs for surfaces that aren't PR-scoped (default-branch failures, the run page). logs_available is false when the run didn't fail or its logs aged out of the short Logs retention.
- 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
- run_id query required
- Workflow run id whose failure logs to fetch.
- integer
- 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.engineeringAnalyticsRunFailureLogs()