From 203939201cf0b0068acd501396c2c232ebd601d8 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Sun, 8 May 2022 21:20:31 +0800 Subject: [PATCH] [monitor]feature: enable alerter send test msg button (#117) --- .../manager/service/impl/NoticeConfigServiceImpl.java | 8 -------- manager/src/main/resources/sureness.yml | 4 ++-- script/docker-compose/conf/sureness.yml | 4 ++-- script/sureness.yml | 4 ++-- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/manager/src/main/java/com/usthe/manager/service/impl/NoticeConfigServiceImpl.java b/manager/src/main/java/com/usthe/manager/service/impl/NoticeConfigServiceImpl.java index 491fca8082d..c7333c49d6d 100644 --- a/manager/src/main/java/com/usthe/manager/service/impl/NoticeConfigServiceImpl.java +++ b/manager/src/main/java/com/usthe/manager/service/impl/NoticeConfigServiceImpl.java @@ -61,14 +61,6 @@ public List getNoticeRules(Specification specification) public void addReceiver(NoticeReceiver noticeReceiver) { noticeReceiverDao.save(noticeReceiver); } - @Override - public boolean sendTestMsg(NoticeReceiver noticeReceiver) { - Alert alert = new Alert(); - alert.setContent(CommonConstants.TEST_SEND_MSG); - alert.setId(0L); - return dispatcherAlarm.sendNoticeMsg(noticeReceiver, alert); - } - @Override public void editReceiver(NoticeReceiver noticeReceiver) { diff --git a/manager/src/main/resources/sureness.yml b/manager/src/main/resources/sureness.yml index 1720d42d520..e07e8c5d034 100644 --- a/manager/src/main/resources/sureness.yml +++ b/manager/src/main/resources/sureness.yml @@ -67,8 +67,8 @@ excludedResource: # 用户账户信息 # 下面有 admin tom lili 三个账户 -# eg: admin 拥有[admin,user]角色,密码为admin -# eg: tom 拥有[user],密码为tom@123 +# eg: admin 拥有[admin,user]角色,密码为hertzbeat +# eg: tom 拥有[user],密码为hertzbeat # eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289 account: - appId: admin diff --git a/script/docker-compose/conf/sureness.yml b/script/docker-compose/conf/sureness.yml index a9c1f82ae62..45a1dbc2268 100644 --- a/script/docker-compose/conf/sureness.yml +++ b/script/docker-compose/conf/sureness.yml @@ -67,8 +67,8 @@ excludedResource: # 用户账户信息 # 下面有 admin tom lili 三个账户 -# eg: admin 拥有[admin,user]角色,密码为admin -# eg: tom 拥有[user],密码为tom@123 +# eg: admin 拥有[admin,user]角色,密码为hertzbeat +# eg: tom 拥有[user],密码为hertzbeat # eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289 account: - appId: admin diff --git a/script/sureness.yml b/script/sureness.yml index a11a22b73c8..53ecb44ee0f 100644 --- a/script/sureness.yml +++ b/script/sureness.yml @@ -65,8 +65,8 @@ excludedResource: # 用户账户信息 # 下面有 admin tom lili 三个账户 -# eg: admin 拥有[admin,user]角色,密码为admin -# eg: tom 拥有[user],密码为tom@123 +# eg: admin 拥有[admin,user]角色,密码为hertzbeat +# eg: tom 拥有[user],密码为hertzbeat # eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289 account: - appId: admin