Interface ISentinelAlertDao

All Superinterfaces:
ICreateDao<SentinelAlert>, IIdentifiableReadDao<SentinelAlert>, IUpdateDao<SentinelAlert>
All Known Implementing Classes:
SentinelAlertDao

public interface ISentinelAlertDao extends ICreateDao<SentinelAlert>, IIdentifiableReadDao<SentinelAlert>, IUpdateDao<SentinelAlert>
The ActiveMonitor alert data access object.
Author:
ActiveViam
  • Method Details Link icon

    • getAll Link icon

      Collection<SentinelAlert> getAll(boolean active)
      Get all alerts.
      Parameters:
      active - the status of the alerts
      Returns:
      the alerts
    • getFromMonitorId Link icon

      Collection<SentinelAlert> getFromMonitorId(long id)
      Gets all the alerts for a particular monitor id.
      Parameters:
      id - the id of the monitor
      Returns:
      the alerts related to that monitor
    • find Link icon

      Collection<SentinelAlert> find(boolean activeOnly, Collection<Long> monitorIds, ITimePeriod timePeriod)
      Finds alerts with complex conditions.
      Parameters:
      activeOnly - flag to only retrieve active alerts, false to retrieve all
      monitorIds - list of monitor ids to consider, null or empty to consider all monitors
      timePeriod - time period to consider It will apply boundaries on alerts, requiring that they either started or stopped in the period. From time is included in the window, to is excluded, i.e. from <= start|stop < to.
      Returns:
      alerts fulfilling all conditions
    • stop Link icon

      Stops an alert.
      Parameters:
      alert - alert to stop
      Returns:
      the stopped alert
    • stop Link icon

      Stops a collection of alerts.
      Parameters:
      alerts - alerts to stop
      Returns:
      the stopped alerts
    • stopAlert Link icon

      SentinelAlert stopAlert(long id)
      Stop the alert by id.
      Parameters:
      id - the id of the alert
      Returns:
      the stopped alert
    • stopForMonitor Link icon

      Collection<SentinelAlert> stopForMonitor(String site, long monitorId)
      Stops all alerts of a given monitor.
      Parameters:
      site - monitor site
      monitorId - monitor id
      Returns:
      list of stopped alerts