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, removeMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAssetId, getAssetModuleId, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getReceivedDate, getSiteTokenaddOrReplaceMetadata, clearMetadata, getMetadata, getMetadata, removeMetadatapublic DeviceAlertWithAsset(IDeviceAlert wrapped, IAssetModuleManager assets) throws SiteWhereException
SiteWhereExceptionpublic AlertSource getSource()
IDeviceAlertgetSource in interface IDeviceAlertpublic AlertLevel getLevel()
IDeviceAlertgetLevel in interface IDeviceAlertpublic java.lang.String getType()
IDeviceAlertgetType in interface IDeviceAlertpublic java.lang.String getMessage()
IDeviceAlertgetMessage in interface IDeviceAlert