Expand description
Read-only operator dashboard.
Serves a single-page HTML/CSS/JS application at /dashboard and a small
JSON API under /api/v1/dashboard/* that lets the page render live
sessions, per-session details, and aggregate stats. The assets are
bundled into the binary via include_str! so there is no filesystem
dependency at runtime.
Trust posture: the dashboard exposes the same session metadata that
already lands on disk and in /metrics. It is not authenticated by
itself — front it with the same ingress-level control operators use
for /metrics. There is no mutating endpoint here; every route is
GET.
Structs§
- List
Query - Query parameters for
GET /api/v1/dashboard/sessions.
Constants§
- DEFAULT_
LIST_ LIMIT - Sorted, capped list of session summaries.
?limit=Nclamped toMAX_LIST_LIMIT; the default isDEFAULT_LIST_LIMIT. - MAX_
LIST_ LIMIT - Upper bound on the
?limit=Nquery parameter for the sessions list.
Functions§
- app_js
- GET /dashboard/app.js — dashboard app JS.
- index
- GET /dashboard — HTML shell.
- list_
sessions - GET /api/v1/dashboard/sessions?limit=&status=
- session_
detail - GET /api/v1/dashboard/sessions/{id}
- stats
- GET /api/v1/dashboard/stats
- style_
css - GET /dashboard/style.css — dashboard CSS.