Skip to main content

api_status

Function api_status 

Source
pub fn api_status(_actor: Actor, pool: &State<DbPool>) -> Json<AdminStatusDto>
Expand description

GET /api/status — the agent twin of the dashboard’s /admin/status.json feed: the AdminStatusDto system snapshot (corpus count, the worker fleet, background-job activity, the pending-conversion backlog, and the latest run) as one structured JSON call a monitoring agent can poll. Complements the Prometheus /metrics gauges — it carries the structured last_run detail (owner / description / timing) the gauges can’t, and matches cortex status --json. Token-gated via the Actor guard (401 without a valid token).