Skip to content

Commit

Permalink
[monitor]feature: enable alerter send test msg button (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 committed May 8, 2022
1 parent aa60edd commit 2039392
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ public List<NoticeRule> getNoticeRules(Specification<NoticeRule> 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) {
Expand Down
4 changes: 2 additions & 2 deletions manager/src/main/resources/sureness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions script/docker-compose/conf/sureness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions script/sureness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2039392

Please sign in to comment.