feat(alerting): working on alert state filters for alert list

This commit is contained in:
Torkel Ödegaard
2016-08-17 11:00:00 +02:00
parent da59d6547f
commit 63a283b4bc
7 changed files with 73 additions and 56 deletions
+3 -2
View File
@@ -13,12 +13,13 @@ const (
AlertStatePending AlertStateType = "pending"
AlertStateExeuctionError AlertStateType = "exeuction_error"
AlertStatePaused AlertStateType = "paused"
AlertStateFiring AlertStateType = "firing"
AlertStateCritical AlertStateType = "critical"
AlertStateWarning AlertStateType = "warning"
AlertStateOK AlertStateType = "ok"
)
func (s AlertStateType) IsValid() bool {
return s == AlertStatePending || s == AlertStateFiring || s == AlertStateOK
return s == AlertStateOK || s == AlertStatePending || s == AlertStateExeuctionError || s == AlertStatePaused || s == AlertStateCritical || s == AlertStateWarning
}
const (