Authored by qinchao

加gateway流量报警

... ... @@ -98,7 +98,7 @@ public class GatewayMonitorTask {
//都大于零,比较变化幅度的绝对值和相对值
Double abs=Math.abs(meanValueFurther-meanValueClose);
Double compareAbs=Math.abs((meanValueFurther-meanValueClose)/meanValueFurther) ;
if(abs>200 || compareAbs>0.3){
if(abs>100 && compareAbs>0.3){
String change="下降";
if(meanValueClose>meanValueFurther){
change="上升";
... ...