public class DeviceAlertWithAsset extends DeviceEventWithAsset implements IDeviceAlert
DeviceAlert
so that information about the asset associated
with its assignment is available.asset, UNASSOCIATED_ASSET_NAME, wrapped
Constructor and Description |
---|
DeviceAlertWithAsset(IDeviceAlert wrapped,
IAssetModuleManager assets) |
Modifier and Type | Method and Description |
---|---|
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.
|
addOrReplaceMetadata, clearMetadata, compareTo, getAssetId, getAssetModuleId, getAssetName, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getMetadata, getMetadata, getReceivedDate, getSiteToken, getWrapped, removeMetadata
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 DeviceAlertWithAsset(IDeviceAlert wrapped, IAssetModuleManager assets) throws SiteWhereException
SiteWhereException
public AlertSource getSource()
IDeviceAlert
getSource
in interface IDeviceAlert
public AlertLevel getLevel()
IDeviceAlert
getLevel
in interface IDeviceAlert
public java.lang.String getType()
IDeviceAlert
getType
in interface IDeviceAlert
public java.lang.String getMessage()
IDeviceAlert
getMessage
in interface IDeviceAlert