提交 774c4838 authored 作者: 杨凯's avatar 杨凯

feat:新增告警接收接口

上级 6903c081
......@@ -45,7 +45,7 @@ public class AlarmServiceImpl implements AlarmService {
// 云端通知人员
if (projProperties.getCloudBaseService().contains(serviceNme)) {
// message += "<at user_id=\\\"ou_6cb2f35f9bf8e7d7e977483801ab13de\\\">杨凯</at>";
message += "<at user_id=\\\"" + projProperties.getCloudBaseNotifyName() + "\\\">杨凯</at>";
message += "<at user_id=\\\"" + projProperties.getCloudBaseNotifyName() + "\\\"></at>";
alarmMessage.setAlarmMessage(message);
}
String sendMessage = "{\"msg_type\":\"text\",\"content\":{\"text\":\"Apache SkyWalking Alarm: \\n %s.\"}}";
......
......@@ -82,4 +82,4 @@ secret: OV5mmyDxX5Nx0caMYQp3Kg
projprops:
cloud_base_service: byh-doctor-service-basedata01_cloud-pro,byh-doctor-service-basedata02_cloud-pro,byh-doctoruser-service-core01_cloud-pro,byh-doctoruser-service-core02_cloud-pro,byh-sysinfocloud-service_cloud-pro,byh-ehospital-im01_cloud-pro,byh-ehospital-im02_cloud-pro
cloud_base_notify_name: ou_c6455365320227160724033bc454c666
\ No newline at end of file
cloud_base_notify_name: ou_6cb2f35f9bf8e7d7e977483801ab13de
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论