Commit d830bea7 by lipengbo

打电话报警(影响app数超过10,且问题指标数据超过2个才打电话),短信和邮件报警规则不变

parent 19763609
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -52,8 +52,11 @@ public class Main {
try {
//短信通知
new HttpClientUtil().sendMsg(title);
//打电话报警
new PhoneMsgInfo().sendMsg(title);
//打电话报警(影响app数超过10,且问题指标数据超过2个才打电话)
String[] cntarray=title.split("'");
if(Integer.parseInt(cntarray[1])>10 & Integer.parseInt(cntarray[3])>2){
new PhoneMsgInfo().sendMsg(title);
}
}
catch (Exception e1) {
e1.printStackTrace();
......@@ -141,8 +144,11 @@ public class Main {
try {
//短信通知
new HttpClientUtil().sendMsg(title);
//打电话报警
new PhoneMsgInfo().sendMsg(title);
//打电话报警(影响app数超过10,且问题指标数据超过2个才打电话)
String[] cntarray=title.split("'");
if(Integer.parseInt(cntarray[1])>10 & Integer.parseInt(cntarray[3])>2){
new PhoneMsgInfo().sendMsg(title);
}
}
catch (Exception e1) {
e1.printStackTrace();
......
......@@ -554,7 +554,7 @@ public class MysqlDAO {
}
if (checkrstkey>0){
content.append("</table>");
title.append("***"+ds+"日数据异常,影响APP个数"+checkrstkey+",请及时处理***");
title.append("***"+ds+"日数据异常,影响APP个数'"+checkrstkey+"',请及时处理***");
String sqlindicator = " select t2.indicator_desc,t3.task_desc,t4.maxrate,t1.rows_all_rate\n" +
",t1.rows_all,t1.indicator_rows_abn,t1.apps_all,t1.indicator_apps_abn\n" +
......@@ -597,6 +597,7 @@ public class MysqlDAO {
}
if (i>0){
content.append("</table>");
title.append(",异常指标个数'"+i+"'");
}
}
......
......@@ -11,7 +11,6 @@ public class ExecCheck implements Runnable {
this.paramarr=paramarr;
}
@Override
public void run(){
try{
new MysqlDAO().insertCheckRst(paramarr);
......
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