Interface OutageDao

    • Method Detail

      • currentOutageCount

        Integer currentOutageCount()

        currentOutageCount

        Returns:
        a Integer object.
      • currentOutageForService

        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.
      • currentOutagesForServiceFromPerspectivePoller

        Collection<OnmsOutage> currentOutagesForServiceFromPerspectivePoller​(OnmsMonitoredService service)
        Return all current open outages for the given service be it detected from Perspective Poller.
      • matchingCurrentOutages

        Collection<OnmsOutage> matchingCurrentOutages​(ServiceSelector selector)
        Finds all current (unresolved) outages that match the given service selector.
        Parameters:
        selector - a service selector (filter + service list)
        Returns:
        a Collection of outages
      • countOutagesByNode

        int countOutagesByNode()
        Get the number of nodes with outages.
        Returns:
        the number of nodes with outages.
      • getNodeOutageSummaries

        List<OutageSummary> getNodeOutageSummaries​(int rows)
        Get the list of current outages, one per node. If a node has more than one outage, the oldest outstanding outage is returned.
        Parameters:
        rows - The maximum number of outages to return.
        Returns:
        A list of outages.
      • getHeatMapItemsForEntity

        List<HeatMapElement> getHeatMapItemsForEntity​(String entityNameColumn,
                                                      String entityIdColumn,
                                                      String restrictionColumn,
                                                      String restrictionValue,
                                                      String... groupByColumns)
        Retrieves heatmap elements for a given combination of database columns.
        Parameters:
        entityNameColumn - the entity's name column
        entityIdColumn - the entity's id column
        restrictionColumn - a column used for a restriction of the results
        restrictionValue - the value that must match against the restrictionColumn
        groupByColumns - columns used for the SQL group-by clause
        Returns:
        the heatmap elements for this query