Merge pull request #14979 from influxdata/add_any_check_level
fix(notification): fix the any checkLevel stringpull/14981/head
commit
c2b6a33bb2
|
@ -59,7 +59,7 @@ func (cl *CheckLevel) UnmarshalJSON(b []byte) error {
|
|||
|
||||
// String returns the string value, invalid CheckLevel will return Unknown.
|
||||
func (cl CheckLevel) String() string {
|
||||
if cl < Unknown || cl > Critical {
|
||||
if cl < Unknown || cl > Any {
|
||||
cl = Unknown
|
||||
}
|
||||
return checkLevels[cl]
|
||||
|
|
Loading…
Reference in New Issue