From 78ad60478c1bab155a5c1f2f4faae53ce84ed27b Mon Sep 17 00:00:00 2001 From: liugq Date: Wed, 18 May 2022 21:17:21 +0800 Subject: [PATCH] update alert api --- plugin/api/alerting/rule.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/api/alerting/rule.go b/plugin/api/alerting/rule.go index 18498c9b..1866c884 100644 --- a/plugin/api/alerting/rule.go +++ b/plugin/api/alerting/rule.go @@ -372,6 +372,11 @@ func (alertAPI *AlertAPI) getRuleAlertMessageNumbers(ruleIDs []string) ( map[str "rule_id": ruleIDs, }, }, + { + "terms": util.MapStr{ + "status": []string{alerting.MessageStateAlerting, alerting.MessageStateIgnored}, + }, + }, }, }, },