Package com.qfs.snl.persistence
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 Summary
Modifier and TypeMethodDescriptionfetchMonitorStates
(Collection<Long> monitorIds) Retrieves all events forming the state of a monitor.Return the events from the given monitor ids.getFromMonitorId
(long id) Gets all the events for a particular monitor id.getMonitorState
(String site, long monitorId) Retrieve the minimum set of events able to explain the current state of a given monitor, i.e.Methods inherited from interface com.qfs.snl.persistence.ICreateDao
create, create
Methods inherited from interface com.qfs.snl.persistence.IIdentifiableReadDao
get, getAll
-
Method Details
-
getFromMonitorId
Gets all the events for a particular monitor id.- Parameters:
id
- the id of the monitor- Returns:
- the events related to that monitor
-
getAll
Return the events from the given monitor ids.- Parameters:
monitorIds
- the monitors ids- Returns:
- the events associated to those monitor ids
-
getMonitorState
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 sitemonitorId
- the monitor id- Returns:
- the list of events describing the current state of the monitor
-
fetchMonitorStates
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
-