What the health score is
The system health score is a 0–100 composite metric stored in thebwts_iot_health_scores table. It represents the overall condition of the BWTS at each telemetry timestamp. The score is displayed as the arc gauge on the Overview tab’s top-right corner and as a trend line in the Trend Analysis tab.
The score is pre-computed by the data pipeline — not calculated by the dashboard itself. The dashboard reads and displays the stored values.
The four component scores
Each component is independently scored 0–100 and contributes to the overall score:
The Trend Analysis tab exposes
uv_health and lamp_health as individual series in the health evolution chart alongside overall_score.
Risk level thresholds
The
risk_level field in the database stores the string value (LOW, MEDIUM, HIGH, CRITICAL) corresponding to these bands.
Where health scores appear in the dashboard
API response shape
References
- UV Thresholds — how UV intensity maps to compliance and health
- RUL Algorithm — how lamp predictions relate to lamp_health
lib/constants.ts—THRESHOLDS.HEALTH_SCOREcontains the 80/60/40 breakpoints