feat(tui): add SLA reporting view
CI / test (pull_request) Successful in 2m38s
CI / vulncheck (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled

Full-screen SLA report accessible via [s] from detail panel.
Computes uptime%, downtime, outage count, longest outage, MTTR,
and MTBF from state_changes table. Includes daily breakdown with
bar chart, switchable time periods (24h/7d/30d/90d), and
scrollable viewport. LATE/STALE treated as UP for SLA purposes.
This commit is contained in:
2026-06-04 13:19:30 -04:00
parent 9e15b369d3
commit 8617d204ef
14 changed files with 661 additions and 7 deletions
+2
View File
@@ -98,6 +98,8 @@ func (m Model) View() string {
return m.viewDetailPanel()
case stateHistory:
return m.viewHistoryPanel()
case stateSLA:
return m.viewSLAPanel()
case stateAlertDetail:
return m.viewAlertDetailPanel()
default: