From f4b87b0122f76782dd7a4064f93d6c3daa510935 Mon Sep 17 00:00:00 2001 From: liugq Date: Thu, 19 May 2022 12:05:14 +0800 Subject: [PATCH] update alerting api --- plugin/api/alerting/message.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/api/alerting/message.go b/plugin/api/alerting/message.go index d8a2d67e..e5bbe3b3 100644 --- a/plugin/api/alerting/message.go +++ b/plugin/api/alerting/message.go @@ -230,6 +230,8 @@ func (h *AlertAPI) getAlertMessage(w http.ResponseWriter, req *http.Request, ps duration = time.Now().Sub(message.Created) } detailObj := util.MapStr{ + "message_id": message.ID, + "rule_id": message.RuleID, "title": message.Title, "message": message.Message, "severity": message.Severity,