
public final class Alert extends Object implements Serializable
| Constructor and Description |
|---|
Alert(String alertId,
String description)
Base constructor for all Alerts.
|
Alert(String alertId,
String description,
Map<String,Object> innerData)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAlertData(String key,
Serializable payload)
Add a payload to this Alert.
|
boolean |
equals(Object obj) |
Object |
getAlertData(String key)
Get data contained in this Alert.
|
Set<String> |
getAlertDataNames()
Get the Set of names for the Alert data.
|
String |
getAlertId()
Get the Alert id
|
String |
getDescription()
Get the Alert description
|
int |
hashCode() |
String |
toString() |
public Alert(String alertId, String description)
alertId - The alertId for this Alert instance.description - The Alert descriptionpublic String getAlertId()
public String getDescription()
public Object getAlertData(String key)
key - The key with which this data was stored.public void addAlertData(String key, Serializable payload)
key - The key with which this payload is stored.payload - The payload to be added.public Set<String> getAlertDataNames()
Copyright © 2021 LSST. All rights reserved.