Skip to main content

Module admin_timeseries

Module admin_timeseries 

Source
Expand description

GET /api/admin/timeseries (enterprise#46) — per-day usage/savings series for the admin dashboard’s trend charts.

Same window semantics as the usage breakdown (admin_api::resolve_window rules): RFC-3339 from/to, defaulting to the last 30 days. Buckets are UTC days (date_trunc('day', ts)); empty days are filled in so charts get a gapless series — an empty day is a real “0”, not missing data.

Structs§

TimeseriesPoint
One UTC-day bucket of the series.
TimeseriesResponse
Response of GET /api/admin/timeseries.

Functions§

timeseries
Runs the rollup and fills day gaps with zero points.