com.cumulocity.rest.representation.alarm
Class AlarmRepresentation

java.lang.Object
  extended by com.cumulocity.rest.representation.BaseResourceRepresentation
      extended by com.cumulocity.rest.representation.AbstractExtensibleRepresentation
          extended by com.cumulocity.rest.representation.event.EventRepresentation
              extended by com.cumulocity.rest.representation.alarm.AlarmRepresentation
All Implemented Interfaces:
ResourceRepresentation, org.svenson.DynamicProperties

public class AlarmRepresentation
extends EventRepresentation


Constructor Summary
AlarmRepresentation()
           
 
Method Summary
 AuditRecordCollectionRepresentation getHistory()
          Returns the audit history containing the changes made to this alarm.
 String getSeverity()
           
 String getStatus()
           
 void setHistory(AuditRecordCollectionRepresentation history)
           
 void setSeverity(String severity)
          Set the severity of this alarm.
 void setStatus(String status)
          Set the status of this alarm.
 
Methods inherited from class com.cumulocity.rest.representation.event.EventRepresentation
getCreationTime, getId, getSource, getText, getTime, getType, setCreationTime, setId, setSource, setText, setTime, setType
 
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, propertyNames, set, set, set, setAttrs, setProperty
 
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, setSelf, toJSON, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlarmRepresentation

public AlarmRepresentation()
Method Detail

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.