From 4f9b08e1626a785af05c7cacb347d1b3eae1032c Mon Sep 17 00:00:00 2001 From: lucas2 Date: Wed, 1 Nov 2023 17:40:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=8C=89=E7=85=A7=E4=BC=9F=E6=96=87?= =?UTF-8?q?=E6=8C=87=E5=AF=BC=20=E4=BF=AE=E6=94=B9type=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/3.5/schema/1.add_alarm_code.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/script/3.5/schema/1.add_alarm_code.sql b/script/3.5/schema/1.add_alarm_code.sql index 46e5474..a32ccca 100644 --- a/script/3.5/schema/1.add_alarm_code.sql +++ b/script/3.5/schema/1.add_alarm_code.sql @@ -9,9 +9,9 @@ INSERT INTO t_alarm_group_unit("id","name", "group_id") VALUES (49,'数据毛刺 -- 添加[异常识别]告警类型 - IF NOT EXISTS(SELECT 1 FROM t_alarm_type WHERE name='数据中断' AND code='3020' ) + IF NOT EXISTS(SELECT 1 FROM t_alarm_type WHERE name='识别到数据异常中断,产生告警,并已将告警信息推送至运维服务工程师。' AND code='3020' ) THEN - INSERT INTO t_alarm_type (code, name,description,category,enabled,alarm_group,alarm_group_unit,advice_problem) VALUES ('3020','数据中断','数据中断',1,true, + INSERT INTO t_alarm_type (code, name,description,category,enabled,alarm_group,alarm_group_unit,advice_problem) VALUES ('3020','识别到数据异常中断,产生告警,并已将告警信息推送至运维服务工程师。','数据中断',1,true, 1,(select id from "t_alarm_group_unit" where name='数据中断' LIMIT 1),'非软件处理'); END IF; @@ -22,9 +22,9 @@ INSERT INTO t_alarm_group_unit("id","name", "group_id") VALUES (49,'数据毛刺 END IF; -- 添加[数据异常趋势]告警类型 - IF NOT EXISTS(SELECT 1 FROM t_alarm_type WHERE name='数据异常趋势' AND code='3021' ) + IF NOT EXISTS(SELECT 1 FROM t_alarm_type WHERE name='识别到数据异常趋势,产生告警,并已将告警信息推送至运维服务工程师。' AND code='3021' ) THEN - INSERT INTO t_alarm_type (code, name,description,category,enabled,alarm_group,alarm_group_unit,advice_problem) VALUES ('3021','数据异常趋势','数据异常趋势',1,true, + INSERT INTO t_alarm_type (code, name,description,category,enabled,alarm_group,alarm_group_unit,advice_problem) VALUES ('3021','识别到数据异常趋势,产生告警,并已将告警信息推送至运维服务工程师。','数据异常趋势',1,true, 3,(select id from "t_alarm_group_unit" where name='数据异常趋势' LIMIT 1),'非软件处理'); END IF; @@ -37,9 +37,9 @@ INSERT INTO t_alarm_group_unit("id","name", "group_id") VALUES (49,'数据毛刺 -- 添加[数据毛刺]告警类型 - IF NOT EXISTS(SELECT 1 FROM t_alarm_type WHERE name='数据毛刺' AND code='3022' ) + IF NOT EXISTS(SELECT 1 FROM t_alarm_type WHERE name='识别到数据异常毛刺,产生告警,并已将告警信息推送至运维服务工程师。' AND code='3022' ) THEN - INSERT INTO t_alarm_type (code, name,description,category,enabled,alarm_group,alarm_group_unit,advice_problem) VALUES ('3022','数据毛刺','数据毛刺',1,true, + INSERT INTO t_alarm_type (code, name,description,category,enabled,alarm_group,alarm_group_unit,advice_problem) VALUES ('3022','识别到数据异常毛刺,产生告警,并已将告警信息推送至运维服务工程师。','数据毛刺',1,true, 3,(select id from "t_alarm_group_unit" where name='数据毛刺' LIMIT 1),'非软件处理'); END IF;