Commit 26620db0 authored by gaozhentao's avatar gaozhentao

屏蔽发送微信信息代码

parent cad57361
...@@ -131,13 +131,14 @@ public class AlarmTask { ...@@ -131,13 +131,14 @@ public class AlarmTask {
if(flag){ if(flag){
if(alarmCheck != null){ if(alarmCheck != null){
/* 如果存在告警 则恢复 */ /* 如果存在告警 则恢复 */
System.out.println("告警恢复了?");
cassandraDao.updateAlarm(alarmCheck.getSerialnum(),TimeUtil.getDate()); cassandraDao.updateAlarm(alarmCheck.getSerialnum(),TimeUtil.getDate());
String recoveryMsg = alarmCheck.getClusterName() + " " + alarmCheck.getIp() String recoveryMsg = alarmCheck.getClusterName() + " " + alarmCheck.getIp()
+ ":" + alarmCheck.getPort() + ",告警已恢复"; + ":" + alarmCheck.getPort() + ",告警已恢复";
monitorConfig.setAlarmMsg("【告警恢复】"+recoveryMsg); monitorConfig.setAlarmMsg("【告警恢复】"+recoveryMsg);
if(TokenInterceptor.currSwitch){ if(TokenInterceptor.currSwitch){
MonitorUtil.wxAlarm(monitorConfig); //MonitorUtil.wxAlarm(monitorConfig);
} }
} }
}else{ }else{
...@@ -147,7 +148,7 @@ public class AlarmTask { ...@@ -147,7 +148,7 @@ public class AlarmTask {
System.out.println("kk:"+(++kk)); System.out.println("kk:"+(++kk));
monitorConfig.setAlarmMsg(alarmLog.getAlarmMessage()); monitorConfig.setAlarmMsg(alarmLog.getAlarmMessage());
if(TokenInterceptor.currSwitch){ if(TokenInterceptor.currSwitch){
MonitorUtil.wxAlarm(monitorConfig); //MonitorUtil.wxAlarm(monitorConfig);
} }
}else { }else {
/* 如果告警发生变化 回复时间变成告警时间 */ /* 如果告警发生变化 回复时间变成告警时间 */
...@@ -156,7 +157,7 @@ public class AlarmTask { ...@@ -156,7 +157,7 @@ public class AlarmTask {
cassandraDao.insertAlarm(alarmLog); cassandraDao.insertAlarm(alarmLog);
monitorConfig.setAlarmMsg("【告警内容更新】"+alarmLog.getAlarmMessage()); monitorConfig.setAlarmMsg("【告警内容更新】"+alarmLog.getAlarmMessage());
if(TokenInterceptor.currSwitch){ 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