Real-Time Monitoring
Near-Real-Time Dashboard Feeds
The monitoring system uses short AJAX polling (every 10 seconds) to fetch latest device metrics from device_metrics_latest. This delivers near-real-time updates without the complexity of WebSocket infrastructure.
Live Metric Cards
Device cards update in-place. Changed values flash with a cyan highlight animation for 600ms.
Trend Charts
Chart.js line charts animate from left-to-right on load, showing 24h telemetry trends per device.
Critical State Visuals
Devices in critical state show pulsing red borders. Online devices have breathing green status dots.
📊 Scenario: Dashboard Auto-Update
An operator has the health monitoring dashboard open. A patient's blood pressure monitor sends a reading of 178/110 via the telemetry API. On the next 10-second polling cycle, the dashboard fetches /api/devices/latest, detects the changed systolic value, updates the card in-place, and triggers a valueFlash animation on the systolic number. Simultaneously, the alert engine creates a CRITICAL alert that appears in the alert feed.
Sample Telemetry Trend
This chart will display live data from telemetry_logs when devices are connected. Connect a device and send telemetry to see real data here.