From cdd4100a30c7a0e469ed775a68001df90a7cee81 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Tue, 22 Mar 2022 14:43:30 +0800 Subject: [PATCH] code refactor --- src/models/alert_cur_event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/alert_cur_event.go b/src/models/alert_cur_event.go index 575a2aa9..5545eaa6 100644 --- a/src/models/alert_cur_event.go +++ b/src/models/alert_cur_event.go @@ -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":