Commit 861fc7ec by lipengbo

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

parent d830bea7
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.
......@@ -46,7 +46,7 @@ public class HiveDAO {
String appid = rs.getString("appid");
String rowss = rs.getString("rowss");
if (appsmap.containsKey(appid)) {
logger.info("[" + appid + "|" + rowss + "row|" + appsmap.get(appid) + "byte");
//logger.info("[" + appid + "|" + rowss + "row|" + appsmap.get(appid) + "byte");
} else {
checkrstkey++;
if (checkrstkey == 1) {
......@@ -62,7 +62,7 @@ public class HiveDAO {
content.append("<td>" + appid + "</td>");
content.append("<td>" + rowss + "</td>");
content.append("</tr>");
logger.info("[" + appid + "|" + rowss + "row");
//logger.info("[" + appid + "|" + rowss + "row");
}
}
if (checkrstkey > 0) {
......
......@@ -595,9 +595,9 @@ public class MysqlDAO {
content.append("<td>"+rs.getString("INDICATOR_APPS_ABN")+"</td>");
content.append("</tr>");
}
if (i>0){
if (i>1){
content.append("</table>");
title.append(",异常指标个数'"+i+"'");
title.append(",异常指标个数'"+(i-1)+"'");
}
}
......
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