From e2752d63547b789bd539d5272a7dbaebcede3827 Mon Sep 17 00:00:00 2001 From: liugq Date: Mon, 7 Aug 2023 16:11:37 +0800 Subject: [PATCH] add channel test message variable --- plugin/api/alerting/channel.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/api/alerting/channel.go b/plugin/api/alerting/channel.go index 143b9810..e1b5cb15 100644 --- a/plugin/api/alerting/channel.go +++ b/plugin/api/alerting/channel.go @@ -264,6 +264,9 @@ func (h *AlertAPI) testChannel(w http.ResponseWriter, req *http.Request, ps http ctx := map[string]interface{}{ "title": "INFINI platform test alert message", "message": "This is just a test message, do not reply!", + "objects": []string{".infini_metrics"}, + "trigger_at": time.Now().UnixMilli(), + "duration": "5m10s", "rule_id": util.GetUUID(), "rule_name": "test rule", "resource_id": util.GetUUID(),