Package org.codice.ddf.system.alerts
Class Alert
java.lang.Object
org.codice.ddf.system.alerts.SystemNotice
org.codice.ddf.system.alerts.Alert
Alert is the property map class used by DDF for alerting events. When events are received on the
Decanter topic 'decanter/alert/*' by the AlertListener they are converted to this class for
storage and dissemination. This class defines all the common keys used in alerts events that are
not included in the SystemNotice class and provides convenient helpers for accessing them.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringKey for the integer count indicating how many times this alert has occurredstatic final Stringstatic final StringKey for the user who dismissed the alertstatic final Stringstatic final StringKey for the data/time this alert was dismissedstatic final Stringstatic final StringKey for the date/time when this alert was last updatedstatic final StringKey for the status of this alert, either acitve or dismissedFields inherited from class org.codice.ddf.system.alerts.SystemNotice
EVENT_TYPE_KEY, properties, SYSTEM_NOTICE_BASE_TOPIC, SYSTEM_NOTICE_DETAILS_KEY, SYSTEM_NOTICE_EVENT_TYPE, SYSTEM_NOTICE_HOST_ADDRESS_KEY, SYSTEM_NOTICE_HOST_NAME_KEY, SYSTEM_NOTICE_ID_KEY, SYSTEM_NOTICE_PRIORITY_KEY, SYSTEM_NOTICE_SOURCE_KEY, SYSTEM_NOTICE_TIME_KEY, SYSTEM_NOTICE_TITLE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCount()getDismissedAlert(String user) protected voidinit()Methods inherited from class org.codice.ddf.system.alerts.SystemNotice
getDetails, getHostAddress, getHostName, getId, getPriority, getProperties, getSource, getTime, getTitle, safePut
-
Field Details
-
ALERT_DISMISS_TOPIC
- See Also:
-
ALERT_EVENT_TYPE
- See Also:
-
ALERT_LAST_UPDATED
Key for the date/time when this alert was last updated- See Also:
-
ALERT_COUNT
Key for the integer count indicating how many times this alert has occurred- See Also:
-
ALERT_STATUS
Key for the status of this alert, either acitve or dismissed- See Also:
-
ALERT_DISMISSED_TIME
Key for the data/time this alert was dismissed- See Also:
-
ALERT_DISMISSED_BY
Key for the user who dismissed the alert- See Also:
-
ALERT_DISMISSED_STATUS
- See Also:
-
ALERT_ACTIVE_STATUS
- See Also:
-
-
Constructor Details
-
Alert
public Alert() -
Alert
-
Alert
-
-
Method Details
-
init
protected void init()- Overrides:
initin classSystemNotice
-
getLastUpdated
-
getCount
-
getStatus
-
getDismissedTime
-
getDismissedBy
-
getDismissedAlert
-