Package com.qfs.snl.data
Interface ISentinelEvent
- All Superinterfaces:
IIdentifiable
,ILocatedResource
,ISiteLocated
- All Known Implementing Classes:
EventDto
,GroupedStreamInfo.PartialEvent
,SentinelEvent
,SingleStreamInfo
Class representing a ActiveMonitor event.
- Author:
- ActiveViam
-
Field Summary
Fields inherited from interface com.qfs.snl.persistence.IIdentifiable
NO_ID
-
Method Summary
Modifier and TypeMethodDescriptionlong
Return the id of the monitor that produced the event.Return the previous status of this event If null it means that the state has started.List
<? extends ISentinelState> Gets the state of the event.Return the status of this event If null it means that the state has ended.long
Return the timestamp in milliseconds when the action occurred.Gets a string representation of the updated resource.Methods inherited from interface com.qfs.snl.persistence.IIdentifiable
getId
Methods inherited from interface com.qfs.snl.monitors.ISiteLocated
getSite
-
Method Details
-
getMonitorId
long getMonitorId()Return the id of the monitor that produced the event.- Returns:
- the id of the monitor
-
getUpdatedResource
Gets a string representation of the updated resource.This does support a null value. It will be considered as a valid representation, meaning that all event with a null resource are considered as updates on the same resource.
- Returns:
- the updated resource
-
getTimestamp
long getTimestamp()Return the timestamp in milliseconds when the action occurred.- Returns:
- the timestamp in milliseconds
-
getPreviousStatus
Double getPreviousStatus()Return the previous status of this event If null it means that the state has started.- Returns:
- the previous status of the event
-
getStatus
Double getStatus()Return the status of this event If null it means that the state has ended.- Returns:
- the status of the event
-
getStates
List<? extends ISentinelState> getStates()Gets the state of the event.- Returns:
- the list of states representing the event state
-