Skip to content

Commit 337c677

Browse files
committed
feat: add maintenance status
1 parent b0430c5 commit 337c677

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/util/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ func (i Impact) IsValid() bool {
109109
type IncidentStatus string
110110

111111
const (
112+
StatusMaintenance IncidentStatus = "maintenance"
112113
StatusInvestigating IncidentStatus = "investigating"
113114
StatusIdentified IncidentStatus = "identified"
114115
StatusMonitoring IncidentStatus = "monitoring"
@@ -118,7 +119,7 @@ const (
118119
// helper function for validating IncidentStatus
119120
func (i IncidentStatus) IsValid() bool {
120121
switch i {
121-
case StatusInvestigating, StatusIdentified, StatusMonitoring, StatusResolved:
122+
case StatusMaintenance, StatusInvestigating, StatusIdentified, StatusMonitoring, StatusResolved:
122123
return true
123124
default:
124125
return false

0 commit comments

Comments
 (0)