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 HTML

  • GET /events — Server-Sent Events; one JSON snapshot per

    refresh interval

  • GET /snapshot — one-shot JSON for polling clients

Functions

snapshot_metrics([window_seconds])

Build a snapshot suitable for the dashboard.

start_dashboard([host, port, ...])

stop_dashboard()

Classes

LiveDashboardServer([host, port, ...])

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. rps is the rolling request count over window_seconds from 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