Commit 26620db0 authored by gaozhentao's avatar gaozhentao

屏蔽发送微信信息代码

parent cad57361
......@@ -131,13 +131,14 @@ public class AlarmTask {
if(flag){
if(alarmCheck != null){
/* 如果存在告警 则恢复 */
System.out.println("告警恢复了?");
cassandraDao.updateAlarm(alarmCheck.getSerialnum(),TimeUtil.getDate());
String recoveryMsg = alarmCheck.getClusterName() + " " + alarmCheck.getIp()
+ ":" + alarmCheck.getPort() + ",告警已恢复";
monitorConfig.setAlarmMsg("【告警恢复】"+recoveryMsg);
if(TokenInterceptor.currSwitch){
MonitorUtil.wxAlarm(monitorConfig);
//MonitorUtil.wxAlarm(monitorConfig);
}
}
}else{
......@@ -147,7 +148,7 @@ public class AlarmTask {
System.out.println("kk:"+(++kk));
monitorConfig.setAlarmMsg(alarmLog.getAlarmMessage());
if(TokenInterceptor.currSwitch){
MonitorUtil.wxAlarm(monitorConfig);
//MonitorUtil.wxAlarm(monitorConfig);
}
}else {
/* 如果告警发生变化 回复时间变成告警时间 */
......@@ -156,7 +157,7 @@ public class AlarmTask {
cassandraDao.insertAlarm(alarmLog);
monitorConfig.setAlarmMsg("【告警内容更新】"+alarmLog.getAlarmMessage());
if(TokenInterceptor.currSwitch){
MonitorUtil.wxAlarm(monitorConfig);
//MonitorUtil.wxAlarm(monitorConfig);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment