feat: incident management and maintenance windows #17

Merged
lerko merged 4 commits from feat/incident-management into main 2026-05-22 23:34:16 +00:00
Showing only changes of commit dc672d6cba - Show all commits
+2 -2
View File
@@ -652,7 +652,7 @@ func (m Model) pulseIndicator() string {
} }
hasDown := false hasDown := false
for _, s := range m.sites { for _, s := range m.sites {
if !s.Paused && (s.Status == "DOWN" || s.Status == "SSL EXP") { if !s.Paused && !m.isMonitorInMaintenance(s.ID) && (s.Status == "DOWN" || s.Status == "SSL EXP") {
hasDown = true hasDown = true
break break
} }
@@ -727,7 +727,7 @@ func (m Model) View() string {
func (m Model) viewDashboard() string { func (m Model) viewDashboard() string {
downCount := 0 downCount := 0
for _, s := range m.sites { for _, s := range m.sites {
if !s.Paused && (s.Status == "DOWN" || s.Status == "SSL EXP") { if !s.Paused && !m.isMonitorInMaintenance(s.ID) && (s.Status == "DOWN" || s.Status == "SSL EXP") {
downCount++ downCount++
} }
} }