|
|
package com.monitor.user.ctrl;
|
|
|
|
|
|
import com.model.AlarmMsgModel;
|
|
|
import com.model.User;
|
|
|
import com.model.UserOperateLog;
|
|
|
import com.monitor.common.contants.PaginationContants;
|
|
|
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;
|
|
|
import com.monitor.model.page.PageRequest;
|
|
|
import com.monitor.model.page.PageResponse;
|
|
|
import com.monitor.model.request.MonitorAlarmTableReq;
|
|
|
import com.monitor.model.request.SqlOpLogsReq;
|
|
|
import com.monitor.model.request.UserOperateReq;
|
|
|
import com.monitor.model.response.BaseResponse;
|
|
|
import com.monitor.mysql.mapper.UserMapper;
|
|
|
import com.monitor.mysql.mapper.UserOperateLogMapper;
|
|
|
import com.monitor.user.service.MonitorAlarmServiceImpl;
|
|
|
import com.monitor.user.service.UserOperateLogsServiceImpl;
|
|
|
import com.util.GetUsersInfoUtil;
|
|
|
import org.influxdb.InfluxDB;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@Controller
|
|
|
@RequestMapping("monitorAlarm")
|
|
|
public class MonitorCtrl {
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(MonitorCtrl.class);
|
|
|
public class MonitorAlarmCtrl {
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(MonitorAlarmCtrl.class);
|
|
|
@Autowired
|
|
|
MonitorAlarmServiceImpl monitorAlarmService;
|
|
|
|
...
|
...
|
|