...
|
...
|
@@ -374,7 +374,7 @@ public class NewJavaApiInfoServiceImpl implements NewJavaApiInfoService { |
|
|
//获取报警阀值
|
|
|
Integer costThreshold = snsMobileConfig.getJavaServiceCostThreshold();
|
|
|
if(costThreshold == null){
|
|
|
costThreshold = 150;
|
|
|
costThreshold = 300;
|
|
|
}
|
|
|
String nowString = DateTime.now().minusSeconds(10).toString("yyyy-MM-dd HH:mm:ss");
|
|
|
log.info("sendAlarmMsg nowString is :" + nowString + ",costThreshold is " + costThreshold);
|
...
|
...
|
@@ -388,6 +388,11 @@ public class NewJavaApiInfoServiceImpl implements NewJavaApiInfoService { |
|
|
if(!distinctIpList.contains(hostAddress)){
|
|
|
continue;
|
|
|
}
|
|
|
//若没有zabbix中监控信息,则为灰度或其他服务
|
|
|
if(!vmInfoMap.containsKey(hostAddress))
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
|
String serviceName = (String)map.get("serviceName");
|
|
|
Integer mean = ((Double)map.get("mean")).intValue();
|
|
|
String ratioStr = "" + (int)(((Double)map.get("ratio")) * 100) + "%";
|
...
|
...
|
|