Browse Source

fix:集中告警去掉假数据

pull/55/head
肖晋飞 3 weeks ago
parent
commit
d537e430c3
  1. 10
      yudao-module-alert/yudao-module-alert-biz/src/main/java/cn/iocoder/yudao/module/alert/service/warn/WarnServiceImpl.java

10
yudao-module-alert/yudao-module-alert-biz/src/main/java/cn/iocoder/yudao/module/alert/service/warn/WarnServiceImpl.java

@ -268,11 +268,11 @@ public class WarnServiceImpl implements WarnService {
EXAUtils exaUtils = new EXAUtils(); EXAUtils exaUtils = new EXAUtils();
exaHistoryReqVO.setItemName(point); exaHistoryReqVO.setItemName(point);
// 3. 获取历史数据 // 3. 获取历史数据-这是为了测试用的假数据
exaHistoryReqVO.setItemName("SYG1_10BBA20ECMS501"); // exaHistoryReqVO.setItemName("SYG1_10BBA20ECMS501");
exaHistoryReqVO.setStartTime("2023-10-28 17:00:00"); // exaHistoryReqVO.setStartTime("2023-10-28 17:00:00");
exaHistoryReqVO.setEndTime("2023-10-28 23:00:00"); // exaHistoryReqVO.setEndTime("2023-10-28 23:00:00");
exaHistoryReqVO.setInterval(60L); // exaHistoryReqVO.setInterval(60L);
List<List<Double>> inputData = exaUtils.getHistory(EXA_IP, exaHistoryReqVO); List<List<Double>> inputData = exaUtils.getHistory(EXA_IP, exaHistoryReqVO);
List<List<Double>> outputData = exaUtils.getHistory(EXA_IP, exaHistoryReqVO); List<List<Double>> outputData = exaUtils.getHistory(EXA_IP, exaHistoryReqVO);
// 4. 数据校验 // 4. 数据校验

Loading…
Cancel
Save