mirror of
https://github.com/prometheus/prometheus
synced 2025-02-23 16:16:57 +00:00
rules: fix bug for unknown alert state. (#7599)
Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
parent
ddedf454d0
commit
a69a8b931f
@ -74,7 +74,7 @@ func (s AlertState) String() string {
|
|||||||
case StateFiring:
|
case StateFiring:
|
||||||
return "firing"
|
return "firing"
|
||||||
}
|
}
|
||||||
panic(errors.Errorf("unknown alert state: %s", s.String()))
|
panic(errors.Errorf("unknown alert state: %d", s))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Alert is the user-level representation of a single instance of an alerting rule.
|
// Alert is the user-level representation of a single instance of an alerting rule.
|
||||||
|
Loading…
Reference in New Issue
Block a user