From 7526604501e750bc8ff4ad53ea9e07c7ed460208 Mon Sep 17 00:00:00 2001 From: --global <1422928955@qq.com> Date: Tue, 22 Dec 2020 16:10:31 +0800 Subject: [PATCH] fix(monitor): other servier create alert add used_by param as a agreement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.解决notify,meter中创建的对应的策略也展示在统一报警策略页面。通过used_by 进行区分 --- pkg/apis/monitor/alert.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/apis/monitor/alert.go b/pkg/apis/monitor/alert.go index 655122848b..b48db70f9e 100644 --- a/pkg/apis/monitor/alert.go +++ b/pkg/apis/monitor/alert.go @@ -117,6 +117,7 @@ type AlertCreateInput struct { NoDataState string `json:"no_data_state"` // 报警执行错误将当前报警状态设置为对应的状态 ExecutionErrorState string `json:"execution_error_state"` + UsedBy string `json:"used_by"` } type AlertUpdateInput struct {