告警设置、告警上报
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
package com.tongran.agent.client.utils;
|
||||
|
||||
import com.tongran.agent.client.core.eo.AlarmEO;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class AgentDataUtil {
|
||||
@@ -23,4 +26,9 @@ public class AgentDataUtil {
|
||||
}
|
||||
return memInfo;
|
||||
}
|
||||
|
||||
public static boolean hasAnyActiveAlarm(List<AlarmEO> alarmEOList) {
|
||||
return alarmEOList.stream()
|
||||
.anyMatch(AlarmEO::isCollect);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user