com.cumulocity.rest.representation.alarm
Class AlarmRepresentation
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.rest.representation.AbstractExtensibleRepresentation
com.cumulocity.rest.representation.event.EventRepresentation
com.cumulocity.rest.representation.alarm.AlarmRepresentation
- All Implemented Interfaces:
- ResourceRepresentation, org.svenson.DynamicProperties
public class AlarmRepresentation
- extends EventRepresentation
Methods inherited from class com.cumulocity.rest.representation.event.EventRepresentation |
getCreationTime, getId, getSource, getText, getTime, getType, setCreationTime, setId, setSource, setText, setTime, setType |
AlarmRepresentation
public AlarmRepresentation()
getStatus
@JSONProperty(ignoreIfNull=true)
public String getStatus()
setStatus
public void setStatus(String status)
- Set the status of this alarm.
- Parameters:
status
- Typical values are active, acknowledged or cleared
getSeverity
@JSONProperty(ignoreIfNull=true)
public String getSeverity()
setSeverity
public void setSeverity(String severity)
- Set the severity of this alarm.
- Parameters:
severity
- Typical values are: critical, major, minor and warning
getHistory
@JSONProperty(ignoreIfNull=true)
public AuditRecordCollectionRepresentation getHistory()
- Returns the audit history containing the changes made to this alarm.
- Returns:
setHistory
public void setHistory(AuditRecordCollectionRepresentation history)
Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.