...
|
...
|
@@ -16,19 +16,6 @@ import javax.annotation.PostConstruct; |
|
|
public class SnsMobileConfig {
|
|
|
public static final Logger logger = LoggerFactory.getLogger(SnsMobileConfig.class);
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
private GetUsersInfoUtil getUsersInfoUtil;
|
|
|
|
|
|
@Value("${base_mobile}")
|
|
|
private String baseMobile;
|
|
|
|
|
|
@Value("${redis_exception_mobile}")
|
|
|
private String redisMobile;
|
|
|
|
|
|
@Value("${java_service_alarm_mobile}")
|
|
|
private String javaServiceMobile;
|
|
|
|
|
|
@Value("${java_service_alarm_flag}")
|
|
|
private boolean javaServiceFlag;
|
|
|
|
...
|
...
|
@@ -38,11 +25,19 @@ public class SnsMobileConfig { |
|
|
@Value("${java_service_alarm_count_threshold}")
|
|
|
private Integer javaServiceCountThreshold;
|
|
|
|
|
|
@Value("${java_api_error}")
|
|
|
private String javaApiError;
|
|
|
@Autowired
|
|
|
private GetUsersInfoUtil getUsersInfoUtil;
|
|
|
|
|
|
private String bigdataMobile;
|
|
|
|
|
|
private String javaApiError;
|
|
|
|
|
|
private String javaServiceMobile;
|
|
|
|
|
|
private String redisMobile;
|
|
|
|
|
|
private String baseMobile;
|
|
|
|
|
|
@PostConstruct
|
|
|
public void init(){
|
|
|
//大数据报警
|
...
|
...
|
@@ -51,7 +46,7 @@ public class SnsMobileConfig { |
|
|
bigdataMobile="";
|
|
|
}
|
|
|
|
|
|
/* //JAVAAPI错误报警
|
|
|
//JAVAAPI错误报警
|
|
|
javaApiError =getUsersInfoUtil.getMobileByAlarmGroup("JAVAAPI错误报警");
|
|
|
if(javaApiError==null){
|
|
|
javaApiError="";
|
...
|
...
|
@@ -64,6 +59,7 @@ public class SnsMobileConfig { |
|
|
javaServiceMobile="";
|
|
|
}
|
|
|
|
|
|
|
|
|
//REDIS异常报警
|
|
|
redisMobile=getUsersInfoUtil.getMobileByAlarmGroup("REDIS异常报警");
|
|
|
if(redisMobile==null){
|
...
|
...
|
@@ -74,7 +70,7 @@ public class SnsMobileConfig { |
|
|
baseMobile=getUsersInfoUtil.getMobileByAlarmGroup("基础组");
|
|
|
if(redisMobile==null){
|
|
|
baseMobile="";
|
|
|
}*/
|
|
|
}
|
|
|
|
|
|
logger.info("初始化手机号码");
|
|
|
logger.info("JAVAAPI错误报警 javaApiError :"+javaApiError);
|
...
|
...
|
|