Merge pull request #14979 from influxdata/add_any_check_level

fix(notification): fix the any checkLevel  string
pull/14981/head
kelwang 2019-09-05 15:40:51 -04:00 committed by GitHub
commit c2b6a33bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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]