From bc892789c12a82786f8cc21683175b1751024daf Mon Sep 17 00:00:00 2001 From: bergquist Date: Mon, 2 May 2016 14:33:38 +0200 Subject: [PATCH] feat(alerting): change state from ALERT to CRITICAL --- pkg/models/alerts_state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/models/alerts_state.go b/pkg/models/alerts_state.go index b46c8749a1e..1bcf82f4e5c 100644 --- a/pkg/models/alerts_state.go +++ b/pkg/models/alerts_state.go @@ -15,13 +15,13 @@ type AlertStateLog struct { var ( ALERT_STATE_OK = "OK" - ALERT_STATE_ALERT = "ALERT" + ALERT_STATE_CRITICAL = "CRITICAL" ALERT_STATE_WARN = "WARN" ALERT_STATE_ACKNOWLEDGED = "ACKNOWLEDGED" ) func (this *UpdateAlertStateCommand) IsValidState() bool { - return this.NewState == ALERT_STATE_OK || this.NewState == ALERT_STATE_WARN || this.NewState == ALERT_STATE_ALERT || this.NewState == ALERT_STATE_ACKNOWLEDGED + return this.NewState == ALERT_STATE_OK || this.NewState == ALERT_STATE_WARN || this.NewState == ALERT_STATE_CRITICAL || this.NewState == ALERT_STATE_ACKNOWLEDGED } // Commands