metrics
metrics

Ingestion rollup for the overview page: freshness of the newest datapoint plus per-service metric/series counts over the last day.

get/api/projects/{project_id}/metrics/overview/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/metrics/overview/
  • 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/.

Response

last_seenstring nullable required

When the newest datapoint arrived across all series, ISO 8601. Unlike the counts this ignores the window, so it still answers 'when did ingestion stop'. Null when nothing was ever ingested.

metric_namesinteger required

Distinct metric names reported inside the window.

seriesinteger required

Distinct series (metric + label-set combinations) reported inside the window.

lookback_secondsinteger required

Length of the rollup window in seconds, so consumers can label the counts.

Changes

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