Skip to main content

Module admin_status

Module admin_status 

Source
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§

ProviderStatus
One registry provider as shown on the status card.
StatusResponse
Response of GET /api/admin/status.
StoreStatus
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).