Expand description
GET /api/admin/status (enterprise#46) — the gateway’s live health/config
card for the admin dashboard.
Everything here is observed, not configured wishful thinking: the store
block runs a real query against usage_events (connected = the query
succeeded just now), the drop counter is the live fail-open counter from
proxy::usage_sink, and the provider list mirrors the resolved registry —
including whether each injection credential is actually present in the
environment.
Structs§
- Live
Pricing Status - Freshness of the live model-price table on the status card.
- Provider
Status - One registry provider as shown on the status card.
- Status
Response - Response of
GET /api/admin/status. - Store
Status - Store (Postgres) health, measured by a live query at request time.
Functions§
- build_
status - Assembles the status snapshot. Never fails: a broken store shows up as
connected: false, not as an error response (the card must render during incidents — that is when it matters most). - provider_
statuses - Derives the provider status list from the resolved registry, checking each injection env var now (a rotated-away key shows up immediately).