Authored by qinchao

语音报警改为5分钟检查一次,报警类型根据短信内容排除

... ... @@ -102,7 +102,9 @@ public class MonitorAlarmMapperImpl extends InfluxDBQuery implements MonitorAlar
@Override
public QueryResult selectVoiceAlarm(String influxDBName, int min) {
String command = "SELECT count(sms_content) FROM monitor_alarm where time > now() - "+ min+"m and type != 'work_system' and type != 'service_exception' and type != 'brower' and type != 'search_exception'";
String command = "SELECT count(sms_content) FROM monitor_alarm where time > now() - "+ min+"m and type != 'work_system' and type != 'service_exception' and type != 'brower' and type != 'search_exception'" +
" and sms_content != 'YOHOBUY实时店铺监控系统:spark数据没写入' " +
" and sms_content != 'MonitAlarmInfo(host=10.67.1.139, service=SparkJobRunner, info=spark任务异常)' ";
// String command = "SELECT count(sms_content) FROM monitor_alarm where time > now() - "+ min+"m";
return query(influxDBName, command, InfluxDBContants.YOMO_MONITOR);
... ...
... ... @@ -26,7 +26,7 @@ cron_task_javaservice_alarm=0/30 * * * * ?
cron_task_memcached=0 0/1 * * * ?
cron_task_alarm_voice=0 0/1 * * * ?
cron_task_alarm_voice=0 0/5 * * * ?
cron_task_aplipay_voice=0 0/1 * * * ?
... ...