public interface OutageDao extends LegacyOnmsDao<OnmsOutage,Integer>
OutageDao interface.
Modifier and Type | Method and Description |
---|---|
int |
countOutagesByNode()
Get the number of nodes with outages.
|
Integer |
currentOutageCount()
currentOutageCount
|
OnmsOutage |
currentOutageForService(OnmsMonitoredService service)
Return the current open outage for the service or if the service
is up and has no open outage, return null.
|
Collection<OnmsOutage> |
currentOutages()
currentOutages
|
Collection<OnmsOutage> |
findAll(Integer offset,
Integer limit)
findAll
|
List<HeatMapElement> |
getHeatMapItemsForEntity(String entityNameColumn,
String entityIdColumn,
String restrictionColumn,
String restrictionValue,
String... groupByColumns)
Retrieves heatmap elements for a given combination of database columns.
|
List<OutageSummary> |
getNodeOutageSummaries(int rows)
Get the list of current outages, one per node.
|
Collection<OnmsOutage> |
matchingCurrentOutages(ServiceSelector selector)
matchingCurrentOutages
|
countMatching, findMatching
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
Collection<OnmsOutage> currentOutages()
currentOutages
Collection
object.OnmsOutage currentOutageForService(OnmsMonitoredService service)
Collection<OnmsOutage> matchingCurrentOutages(ServiceSelector selector)
matchingCurrentOutages
selector
- a ServiceSelector
object.Collection
object.Collection<OnmsOutage> findAll(Integer offset, Integer limit)
findAll
offset
- a Integer
object.limit
- a Integer
object.Collection
object.int countOutagesByNode()
List<OutageSummary> getNodeOutageSummaries(int rows)
rows
- The maximum number of outages to return.List<HeatMapElement> getHeatMapItemsForEntity(String entityNameColumn, String entityIdColumn, String restrictionColumn, String restrictionValue, String... groupByColumns)
entityNameColumn
- the entity's name columnentityIdColumn
- the entity's id columnrestrictionColumn
- a column used for a restriction of the resultsrestrictionValue
- the value that must match against the restrictionColumngroupByColumns
- columns used for the SQL group-by clauseCopyright © 2018. All rights reserved.