feat(tui): add SLA reporting view
CI / test (pull_request) Successful in 2m35s
CI / lint (pull_request) Successful in 56s
CI / vulncheck (pull_request) Successful in 41s

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 was merged in pull request #58.
This commit is contained in:
2026-06-04 13:19:30 -04:00
parent b2e92e8a2a
commit 60592ef810
14 changed files with 661 additions and 7 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ func (m Model) viewDetailPanel() string {
}
b.WriteString("\n\n")
b.WriteString(subtleStyle.Render(" [i/Esc] Back [e] Edit [h] History [q] Quit"))
b.WriteString(subtleStyle.Render(" [i/Esc] Back [e] Edit [h] History [s] SLA [q] Quit"))
return lipgloss.NewStyle().Padding(1, 2).Render(b.String())
}