logs

Per-series log volume with expected bands

Returns log volume over the requested window for every (namespace, environment, severity) series of one service, with a time-of-week expected band derived from the prior weeks of the volume rollup. The window defaults to the last 7 days and may span at most 7 days. Synchronous and read only.

post/api/projects/{project_id}/logs/anomalies/series_bands/

Request

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

Request body

serviceNamestring required

Service whose per-series volume to chart (the log record's service_name).

Response

Observed volume and expected band per series of the service.

service_namestring required

Service the series belong to.

window_startstring date-time required

Start of the observed window (UTC, inclusive).

window_endstring date-time required

End of the observed window (UTC, exclusive).

interval_minutesinteger required

Display grain requested, or picked to cut the window into about 168 buckets when the request left it out.

series_truncatedboolean required

True when the service has more series than the response carries; the quietest were dropped.

Changes

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