Skip to main content

Module admin

Module admin 

Source
Expand description

Admin inspection routes (runs, events, storage, health, cache, capabilities).

Constants§

ADMIN_CACHE_STATS_PATH
Route path reporting plan-cache statistics.
ADMIN_CAPABILITY_REPORT_PATH
Route path reporting key and capability configuration.
ADMIN_EVENTS_PATH
Route path listing all recorded gateway events.
ADMIN_MODEL_HEALTH_PATH
Route path reporting backend and registered-model health.
ADMIN_RUNS_PATH
Route path listing all recorded gateway runs.
ADMIN_RUN_RETRIEVAL_PREFIX
Path prefix stripped to extract a run id from a run-retrieval request.
ADMIN_RUN_RETRIEVAL_ROUTE
Route template for retrieving a single run by id.
ADMIN_STORAGE_STATS_PATH
Route path reporting storage object counts and latency stats.

Functions§

handle_admin_cache_stats
Handles the admin plan-cache statistics report.
handle_admin_capability_report
Handles the admin capability report (admin capability id, key count, and anonymous capability grants).
handle_admin_events
Handles the admin events listing, returning every recorded event as JSON.
handle_admin_model_health
Handles the admin model-health report over the registered runners.
handle_admin_run_get
Handles admin retrieval of a single run by the id embedded in the path.
handle_admin_runs
Handles the admin runs listing, returning every recorded run as JSON.
handle_admin_storage_stats
Handles the admin storage-stats report (object counts and latencies).