Browse Source

Merge pull request 'fix:集中告警去掉假数据' (#55) from dev-xjf into master

Reviewed-on: http://120.26.116.243:3000/root/alert-backend/pulls/55
pull/63/head
xiaojinfei 3 weeks ago
parent
commit
6442a4a19a
  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