Commit aff0b240 authored by tangwei's avatar tangwei

修改报警原因

parent 051e2d8e
......@@ -193,7 +193,7 @@ public class SelfSupportListener extends EmqxListener implements InitializingBea
alarmPoint1.setPointType(AlarmPointTypeEnum.设备.getCode());
alarmPoint1.setUpdateDate(new Date());
alarmPoint1.setIsAlarm(1);//不合格
alarmPoint1.setContent(metricKey);
alarmPoint1.setContent(eqpName+"-"+ipAddress+"-"+metricKey);
alarmPoint1.setCode(orgCode1);
alarmPoint1.setPointName(eqpName);
Map<String, Object> map = new HashMap<>();
......@@ -228,7 +228,7 @@ public class SelfSupportListener extends EmqxListener implements InitializingBea
alarm.setSourceId(eqpId+"");
alarm.setAlarmLevel("警告告警");
alarm.setAlarmReason("");
alarm.setAlarmSourceIp(eqpId+"");
alarm.setAlarmSourceIp(ipAddress+"");
alarm.setAlarmSourceName(eqpName);
alarm.setAlarmSourceType(metricKey);
alarm.setClearDate("");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment