From fde6a9c75e640a177675b10937fae5ede900e162 Mon Sep 17 00:00:00 2001 From: ning <710leo@gmail.com> Date: Tue, 19 Nov 2024 19:23:21 +0800 Subject: [PATCH] refactor: change is_recovered type --- alert/sender/ibex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alert/sender/ibex.go b/alert/sender/ibex.go index 4f7bf6765..af2bf6f54 100644 --- a/alert/sender/ibex.go +++ b/alert/sender/ibex.go @@ -118,7 +118,7 @@ func CallIbex(ctx *ctx.Context, id int64, host string, // 附加告警级别 告警触发值标签 tagsMap["alert_severity"] = strconv.Itoa(event.Severity) tagsMap["alert_trigger_value"] = event.TriggerValue - tagsMap["is_recovered"] = event.IsRecovered + tagsMap["is_recovered"] = strconv.FormatBool(event.IsRecovered) tags, err := json.Marshal(tagsMap) if err != nil {