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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getCount()
org.joda.time.DateTime
Deprecated.Deprecated.Deprecated.Deprecated.int
hashCode()
void
void
setFirstOccurrenceDateTime
(org.joda.time.DateTime firstOccurenceTime) void
setFirstOccurrenceTime
(Date firstOccurenceTime) Deprecated.void
void
setSeverity
(String severity) Set the severity of this alarm.void
setSeverityOrdinal
(Long severityOrdinal) Deprecated.void
Set the status of this alarm.void
setStatusOrdinal
(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, setType
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
Methods 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:
equals
in classEventRepresentation
-
canEqual
- Overrides:
canEqual
in classEventRepresentation
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEventRepresentation
-