public class DeviceAlert extends DeviceEvent implements IDeviceAlert, java.io.Serializable
Constructor and Description |
---|
DeviceAlert() |
Modifier and Type | Method and Description |
---|---|
static DeviceAlert |
copy(IDeviceAlert input)
Create a copy of an SPI object.
|
AlertLevel |
getLevel()
Get severity of alert.
|
java.lang.String |
getMessage()
Get the alert message.
|
AlertSource |
getSource()
Get source of the alert.
|
java.lang.String |
getType()
Get the alert type indicator.
|
void |
setLevel(AlertLevel level) |
void |
setMessage(java.lang.String message) |
void |
setSource(AlertSource source) |
void |
setType(java.lang.String type) |
compareTo, copy, getAssetId, getAssetModuleId, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getReceivedDate, getSiteToken, setAssetId, setAssetModuleId, setAssignmentType, setDeviceAssignmentToken, setEventDate, setEventType, setId, setReceivedDate, setSiteToken
addOrReplaceMetadata, clearMetadata, copy, copy, getMetadata, getMetadata, removeMetadata, setMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssetId, getAssetModuleId, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getReceivedDate, getSiteToken
addOrReplaceMetadata, clearMetadata, getMetadata, getMetadata, removeMetadata
public AlertSource getSource()
IDeviceAlert
getSource
in interface IDeviceAlert
public void setSource(AlertSource source)
public AlertLevel getLevel()
IDeviceAlert
getLevel
in interface IDeviceAlert
public void setLevel(AlertLevel level)
public java.lang.String getType()
IDeviceAlert
getType
in interface IDeviceAlert
public void setType(java.lang.String type)
public java.lang.String getMessage()
IDeviceAlert
getMessage
in interface IDeviceAlert
public void setMessage(java.lang.String message)
public static DeviceAlert copy(IDeviceAlert input) throws SiteWhereException
input
- SiteWhereException