Authored by mlge

短信告警日志 --默认influxdb修改

... ... @@ -8,6 +8,7 @@ import com.monitor.common.service.AppRedisService;
import com.monitor.common.service.MailService;
import com.monitor.common.util.MD5Util;
import com.monitor.influxdb.InfluxDataReporter;
import com.monitor.influxdb.contants.InfluxDBContants;
import com.monitor.model.domain.Mail;
import com.monitor.model.domain.PageBean;
import com.monitor.model.domain.UserOperate;
... ... @@ -54,7 +55,7 @@ public class MonitorCtrl {
@ResponseBody
public BaseResponse getIdcList(String influxdbName){
if(StringUtils.isEmpty(influxdbName)){
influxdbName = "qcloud";
influxdbName = InfluxDBContants.AWS;
}
List<String> idcList = monitorAlarmService.getIdcList(influxdbName);
return new BaseResponse(idcList);
... ...
... ... @@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
import com.model.AlarmMsgModel;
import com.monitor.common.contants.PaginationContants;
import com.monitor.influxdb.InfluxDataReporter;
import com.monitor.influxdb.contants.InfluxDBContants;
import com.monitor.influxdb.util.DateFormatUtil;
import com.monitor.influxdb.util.QueryResultUtil;
import com.monitor.model.page.PageResponse;
... ... @@ -59,7 +60,7 @@ public class MonitorAlarmServiceImpl {
*/
public PageResponse getAlarmMsgPageList(MonitorAlarmTableReq req) {
PageResponse pageResponse = new PageResponse();
String influxDBName = "qcloud";//默认的
String influxDBName = InfluxDBContants.AWS;//默认的
String idcs = req.getIdcs();
List<String> idcList = JSONArray.parseArray(idcs, String.class);
int pageSize = req.getPageSize();
... ...