public class Alert extends SystemNotice
Modifier and Type | Field and Description |
---|---|
static String |
ALERT_ACTIVE_STATUS |
static String |
ALERT_COUNT
Key for the integer count indicating how many times this alert has occurred
|
static String |
ALERT_DISMISS_TOPIC |
static String |
ALERT_DISMISSED_BY
Key for the user who dismissed the alert
|
static String |
ALERT_DISMISSED_STATUS |
static String |
ALERT_DISMISSED_TIME
Key for the data/time this alert was dismissed
|
static String |
ALERT_EVENT_TYPE |
static String |
ALERT_LAST_UPDATED
Key for the date/time when this alert was last updated
|
static String |
ALERT_STATUS
Key for the status of this alert, either acitve or dismissed
|
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 and Description |
---|
Alert() |
Alert(Map<String,Object> map) |
Alert(String source,
NoticePriority priority,
String title,
Set<String> details) |
Modifier and Type | Method and Description |
---|---|
Long |
getCount() |
Alert |
getDismissedAlert(String user) |
String |
getDismissedBy() |
Date |
getDismissedTime() |
Date |
getLastUpdated() |
String |
getStatus() |
protected void |
init() |
getDetails, getHostAddress, getHostName, getId, getPriority, getProperties, getSource, getTime, getTitle, safePut
public static final String ALERT_DISMISS_TOPIC
public static final String ALERT_EVENT_TYPE
public static final String ALERT_LAST_UPDATED
public static final String ALERT_COUNT
public static final String ALERT_STATUS
public static final String ALERT_DISMISSED_TIME
public static final String ALERT_DISMISSED_BY
public static final String ALERT_DISMISSED_STATUS
public static final String ALERT_ACTIVE_STATUS
public Alert()
public Alert(String source, NoticePriority priority, String title, Set<String> details)
This work is licensed under a Creative Commons Attribution 4.0 International License.