code refactor
This commit is contained in:
parent
2cd9f50357
commit
cdd4100a30
|
@ -99,7 +99,7 @@ func (e *AlertCurEvent) GetField(field string) string {
|
||||||
case "rule_name":
|
case "rule_name":
|
||||||
return e.RuleName
|
return e.RuleName
|
||||||
case "severity":
|
case "severity":
|
||||||
return fmt.Sprintf("S%d", e.Severity)
|
return fmt.Sprint(e.Severity)
|
||||||
case "runbook_url":
|
case "runbook_url":
|
||||||
return e.RunbookUrl
|
return e.RunbookUrl
|
||||||
case "target_ident":
|
case "target_ident":
|
||||||
|
|
Loading…
Reference in New Issue