From 8d614422d9343e4cf743dfde11df41c60d58b058 Mon Sep 17 00:00:00 2001 From: liugq Date: Mon, 23 May 2022 16:11:24 +0800 Subject: [PATCH] update alert message api --- plugin/api/alerting/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/api/alerting/message.go b/plugin/api/alerting/message.go index 5ec3a730..1360f260 100644 --- a/plugin/api/alerting/message.go +++ b/plugin/api/alerting/message.go @@ -238,7 +238,7 @@ func (h *AlertAPI) getAlertMessage(w http.ResponseWriter, req *http.Request, ps "created": message.Created, "updated": message.Updated, "resource_name": rule.Resource.Name, - "resource_object": rule.Resource.Objects, + "resource_objects": rule.Resource.Objects, "conditions": rule.Conditions, "duration": duration.Milliseconds(), "ignored_time": message.IgnoredTime,