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,SourceableRepresentation,org.svenson.DynamicProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetCount()org.joda.time.DateTimeDeprecated.Deprecated.Deprecated.Deprecated.inthashCode()voidvoidsetFirstOccurrenceDateTime(org.joda.time.DateTime firstOccurenceTime) voidsetFirstOccurrenceTime(Date firstOccurenceTime) Deprecated.voidvoidsetSeverity(String severity) Set the severity of this alarm.voidsetSeverityOrdinal(Long severityOrdinal) Deprecated.voidSet the status of this alarm.voidsetStatusOrdinal(Long statusOrdinal) Deprecated.Methods inherited from class com.cumulocity.rest.representation.event.EventRepresentation
getCreationDateTime, getCreationTime, getDateTime, getExternalSource, getId, getLastUpdatedDateTime, getSource, getText, getTime, getType, setCreationDateTime, setCreationTime, setDateTime, setExternalSource, setId, setLastUpdatedDateTime, setSource, setText, setTime, setTypeMethods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setPropertyMethods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
Constructor Details
-
AlarmRepresentation
public AlarmRepresentation()
-
-
Method Details
-
getStatus
-
setStatus
Set the status of this alarm.- Parameters:
status- Typical values are active, acknowledged or cleared
-
getSeverity
-
setSeverity
Set the severity of this alarm.- Parameters:
severity- Typical values are: critical, major, minor and warning
-
getSeverityOrdinal
Deprecated.Severity ordinal property is internally used by platform.- Returns:
-
setSeverityOrdinal
Deprecated.Severity ordinal property is internally used by platform and can't be overridden.- Parameters:
severityOrdinal-
-
getStatusOrdinal
Deprecated.Status ordinal property is internally used by platform.- Returns:
-
setStatusOrdinal
Deprecated.Status ordinal property is internally used by platform and can't be overridden.- Parameters:
statusOrdinal-
-
getHistory
@Deprecated @JSONProperty(ignoreIfNull=true) public AuditRecordCollectionRepresentation getHistory()Deprecated.Kept for backwards compatibility in API. Should not be used. Always empty while reading from DB, and always skipped while saving -
setHistory
-
getCount
-
setCount
-
getFirstOccurrenceTime
@JSONProperty(value="deprecated_FirstOccurrenceTime", ignore=true) @Deprecated public Date getFirstOccurrenceTime()Deprecated. -
setFirstOccurrenceTime
Deprecated. -
getFirstOccurrenceDateTime
@JSONProperty(value="firstOccurrenceTime", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getFirstOccurrenceDateTime() -
setFirstOccurrenceDateTime
public void setFirstOccurrenceDateTime(org.joda.time.DateTime firstOccurenceTime) -
equals
- Overrides:
equalsin classEventRepresentation
-
canEqual
- Overrides:
canEqualin classEventRepresentation
-
hashCode
public int hashCode()- Overrides:
hashCodein classEventRepresentation
-