code refactor

This commit is contained in:
Ulric Qin 2022-03-22 14:43:30 +08:00
parent 2cd9f50357
commit cdd4100a30
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ func (e *AlertCurEvent) GetField(field string) string {
case "rule_name":
return e.RuleName
case "severity":
return fmt.Sprintf("S%d", e.Severity)
return fmt.Sprint(e.Severity)
case "runbook_url":
return e.RunbookUrl
case "target_ident":