Interface OutageDao

    • Method Detail

      • currentOutageCount

        java.lang.Integer currentOutageCount()

        currentOutageCount

        Returns:
        a Integer object.
      • currentOutages

        java.util.Collection<OnmsOutage> currentOutages()

        currentOutages

        Returns:
        a Collection 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

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

        java.util.Collection<CurrentOutageDetails> newestCurrentOutages​(java.util.List<java.lang.String> services)
        Finds the latest (unresolved) outages that match the given services.
        Parameters:
        services - a list of services
        Returns:
        a Collection of outages
      • matchingCurrentOutages

        java.util.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
      • findAll

        java.util.Collection<OnmsOutage> findAll​(java.lang.Integer offset,
                                                 java.lang.Integer limit)

        findAll

        Parameters:
        offset - a Integer object.
        limit - a Integer object.
        Returns:
        a Collection object.
      • countOutagesByNode

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

        java.util.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

        java.util.List<HeatMapElement> getHeatMapItemsForEntity​(java.lang.String entityNameColumn,
                                                                java.lang.String entityIdColumn,
                                                                java.lang.String restrictionColumn,
                                                                java.lang.String restrictionValue,
                                                                java.lang.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
      • getStatusChangesForApplicationIdBetween

        java.util.Collection<OnmsOutage> getStatusChangesForApplicationIdBetween​(java.util.Date startDate,
                                                                                 java.util.Date endDate,
                                                                                 java.lang.Integer applicationId)