data_warehouse

Returns success and failed job statistics for the last 1, 7, or 30 days. Query parameter 'days' can be 1, 7, or 30 (default: 7).

get/api/projects/{project_id}/data_warehouse/job_stats/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/data_warehouse/job_stats/
  • Auth: none declared

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

days1 | 7 | 30

Window the counts should cover, in days. One of 1, 7 or 30. Defaults to 7.

  • 1 - 1
  • 7 - 7
  • 30 - 30

Response

daysinteger required

Window the counts cover, in days. One of 1, 7 or 30.

cutoff_timestring date-time required

Start of the window, in the project's timezone.

total_jobsinteger required

Sync runs plus materialization runs in the window.

successful_jobsinteger required

Sync and materialization runs that completed.

failed_jobsinteger required

Sync and materialization runs that failed.

breakdownobject required

Runs per time bucket, keyed by ISO hour when days=1 and by ISO date otherwise. Buckets with no runs are absent rather than zero.

Changes

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