engineering_analytics
engineering_analytics

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.

get/api/projects/{project_id}/engineering_analytics/run_failure_logs/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/engineering_analytics/run_failure_logs/
  • Auth: HTTP bearer

Path parameters

project_idstring required

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'depot_ci' | 'github_actions'

CI engine. Required when run_id exists in both engines.

repostring

'owner/name' repository to scope to when the selected source syncs several repositories (from the sources list). Defaults to the source's first repository.

run_idinteger required

Workflow run id whose failure logs to fetch.

source_idstring uuid

Connected GitHub data warehouse source to read from. Defaults to the oldest connected GitHub source when the team has more than one.

Response

run_idinteger required

Workflow run id the failure logs are for.

logs_availableboolean required

False when no failure logs were found: the run didn't fail, or its logs aged out of the short Logs retention.

truncatedboolean required

True when the overall line cap across all jobs was hit.

Changes

No recorded changes to this operation across all 1 revision of this API.