je_load_density.utils.dashboard.live_dashboard
Live progress dashboard.
A stdlib-only HTTP + SSE server that streams running stats from
test_record_instance so anyone with a browser can watch RPS,
average latency, p95, and failure count in real time.
Endpoints:
GET /— static single-page HTMLGET /events— Server-Sent Events; one JSON snapshot perrefresh interval
GET /snapshot— one-shot JSON for polling clients
Functions
|
Build a snapshot suitable for the dashboard. |
|
|
Classes
|
- class je_load_density.utils.dashboard.live_dashboard.LiveDashboardServer(host: str = '127.0.0.1', port: int = 8765, refresh_seconds: float = 1.0, window_seconds: float = 10.0)
Bases:
object- start() None
- stop() None
- je_load_density.utils.dashboard.live_dashboard.snapshot_metrics(window_seconds: float = 10.0) Dict[str, Any]
Build a snapshot suitable for the dashboard.
rpsis the rolling request count overwindow_secondsfrom the in-memory record list.
- je_load_density.utils.dashboard.live_dashboard.start_dashboard(host: str = '127.0.0.1', port: int = 8765, refresh_seconds: float = 1.0, window_seconds: float = 10.0) LiveDashboardServer
- je_load_density.utils.dashboard.live_dashboard.stop_dashboard() None