Package org.opennms.netmgt.dao.api
Interface AlarmDao
-
- All Known Implementing Classes:
AlarmDaoHibernate
,MockAlarmDao
public interface AlarmDao extends LegacyOnmsDao<OnmsAlarm,Integer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OnmsAlarm
findByReductionKey(String reductionKey)
List<OnmsAlarm>
getAlarmsForEventParameters(Map<String,String> eventParameters)
List<HeatMapElement>
getHeatMapItemsForEntity(String entityNameColumn, String entityIdColumn, boolean processAcknowledgedAlarms, String restrictionColumn, String restrictionValue, String... groupByColumns)
List<AlarmSummary>
getNodeAlarmSummaries()
Get the list of current - not yet acknowledged - alarms per node with severity greater than normal, reflecting the max severity, the minimum last event time and alarm count; ordered by the oldest.List<AlarmSummary>
getNodeAlarmSummariesIncludeAcknowledgedOnes(List<Integer> nodeIds)
Get the list of current alarms per node with severity not equal to cleared, reflecting the max severity, the minimum last event time and alarm count.long
getNumSituations()
Returns the number of situations currently present in the database.List<SituationSummary>
getSituationSummaries()
Get the list of current - not yet acknowledged - situations with severity greater than normal;-
Methods inherited from interface org.opennms.netmgt.dao.api.LegacyOnmsDao
countMatching, findMatching
-
Methods inherited from interface org.opennms.netmgt.dao.api.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
getNodeAlarmSummaries
List<AlarmSummary> getNodeAlarmSummaries()
Get the list of current - not yet acknowledged - alarms per node with severity greater than normal, reflecting the max severity, the minimum last event time and alarm count; ordered by the oldest.
- Returns:
- A list of alarm summaries.
-
getSituationSummaries
List<SituationSummary> getSituationSummaries()
Get the list of current - not yet acknowledged - situations with severity greater than normal;
- Returns:
- A list of situation summaries.
-
getNodeAlarmSummariesIncludeAcknowledgedOnes
List<AlarmSummary> getNodeAlarmSummariesIncludeAcknowledgedOnes(List<Integer> nodeIds)
Get the list of current alarms per node with severity not equal to cleared, reflecting the max severity, the minimum last event time and alarm count. The alarm count only considers not yet acknowledged alarms, but the max severity is calculated overall (including acknowledged) alarms.- Parameters:
nodeIds
- The nodeIds you want to restrict the AlarmSummary calculation to. Must not be NULL!
-
getHeatMapItemsForEntity
List<HeatMapElement> getHeatMapItemsForEntity(String entityNameColumn, String entityIdColumn, boolean processAcknowledgedAlarms, String restrictionColumn, String restrictionValue, String... groupByColumns)
-
getAlarmsForEventParameters
List<OnmsAlarm> getAlarmsForEventParameters(Map<String,String> eventParameters)
-
getNumSituations
long getNumSituations()
Returns the number of situations currently present in the database.
-
-