Authored by zhengyouwei

add hungping

... ... @@ -27,6 +27,9 @@ public class SnsMobileConfig {
@Value("${java_service_alarm_count_threshold}")
private Integer javaServiceCountThreshold;
@Value("${java_api_error}")
private String javaApiError;
public String getBaseMobile() {
return baseMobile;
}
... ... @@ -75,4 +78,12 @@ public class SnsMobileConfig {
public void setJavaServiceCountThreshold(Integer javaServiceCountThreshold) {
this.javaServiceCountThreshold = javaServiceCountThreshold;
}
public String getJavaApiError() {
return javaApiError;
}
public void setJavaApiError(String javaApiError) {
this.javaApiError = javaApiError;
}
}
... ...
... ... @@ -60,7 +60,7 @@ public class MsgJavaApiHandler extends IJavaApiHadnler {
//告警
String msg = buildErrMsg(num, javaApiStatics);
log.info("send error msg : {} .", msg);
alarmMsgService.sendSms("java_api", msg, snsMobileConfig.getBaseMobile());
alarmMsgService.sendSms("java_api", msg, snsMobileConfig.getJavaApiError());
}
} catch (Exception e) {
log.error("Failed to handle {} send msg , error {} ", javaApiStatics, e);
... ...
... ... @@ -22,4 +22,4 @@ java_service_alarm_count_threshold=50
union_mobile=18751986615,18652008443,18502542319,13515100825,18252034289,18001582955,15051889346
java_api_error=18751986615,18652008443,18502542319,13515100825,18252034289,13951882433
... ...
... ... @@ -25,5 +25,6 @@ java_service_alarm_cost_threshold=150
java_service_alarm_count_threshold=50
union_mobile=15905144483
java_api_error=15905144483
... ...