Skip to main content

Module dashboard

Module dashboard 

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

ListQuery
Query parameters for GET /api/v1/dashboard/sessions.

Constants§

DEFAULT_LIST_LIMIT
Sorted, capped list of session summaries. ?limit=N clamped to MAX_LIST_LIMIT; the default is DEFAULT_LIST_LIMIT.
MAX_LIST_LIMIT
Upper bound on the ?limit=N query 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.