Interface ISentinelEventDao

All Superinterfaces:
ICreateDao<SentinelEvent>, IIdentifiableReadDao<SentinelEvent>
All Known Implementing Classes:
SentinelEventDao

public interface ISentinelEventDao extends IIdentifiableReadDao<SentinelEvent>, ICreateDao<SentinelEvent>
The ActiveMonitor event data access object.
Author:
ActiveViam
  • Method Details Link icon

    • getFromMonitorId Link icon

      List<SentinelEvent> getFromMonitorId(long id)
      Gets all the events for a particular monitor id.
      Parameters:
      id - the id of the monitor
      Returns:
      the events related to that monitor
    • getAll Link icon

      List<SentinelEvent> getAll(List<Long> monitorIds)
      Return the events from the given monitor ids.
      Parameters:
      monitorIds - the monitors ids
      Returns:
      the events associated to those monitor ids
    • getMonitorState Link icon

      Collection<SentinelEvent> getMonitorState(String site, long monitorId)
      Retrieve the minimum set of events able to explain the current state of a given monitor, i.e. for each resource with a non null status retrieve the latest event which impacted it.
      Parameters:
      site - the monitor's site
      monitorId - the monitor id
      Returns:
      the list of events describing the current state of the monitor
    • fetchMonitorStates Link icon

      Collection<SentinelEvent> fetchMonitorStates(Collection<Long> monitorIds)
      Retrieves all events forming the state of a monitor.

      For a monitor, events forming the state are the latest events by updated resource with a non-null status

      Parameters:
      monitorIds - ids of monitors for which the state events are fetched
      Returns:
      collection of events forming the state of wanted monitors