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
+1 -1
View File
@@ -35,7 +35,7 @@ func (handler *DefaultResultHandler) Handle(ctx *EvalContext) {
ctx.Rule.State = m.AlertStateExeuctionError
exeuctionError = ctx.Error.Error()
} else if ctx.Firing {
ctx.Rule.State = m.AlertStateFiring
ctx.Rule.State = m.AlertStateType(ctx.Rule.Severity)
} else {
ctx.Rule.State = m.AlertStateOK
}