Get Job Stats V1
Quick aggregate snapshot across three rolling windows. Useful for tenant operational dashboards — answers ‘how am I doing today / this week / this month’ in…
GET
Quick aggregate snapshot across three rolling windows.
Useful for tenant operational dashboards — answers ‘how am I doing
today / this week / this month’ in one round trip. Computed in
Python over a single query per window so the SQL stays portable
across SQLite + Postgres.
in_flight is the live count regardless of window (live jobs don’t
have a created_at filter applied, since ‘in flight’ is a current
state, not a historical event).
Response
JobStatsResponse
JobStatsWindow[]
required
Three windows in fixed order: today, last_7d, last_30d.