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
public class AlarmRepresentation extends EventRepresentation
-
-
Constructor Summary
Constructors Constructor Description AlarmRepresentation()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Long
getCount()
org.joda.time.DateTime
getFirstOccurrenceDateTime()
Date
getFirstOccurrenceTime()
Deprecated.AuditRecordCollectionRepresentation
getHistory()
Deprecated.String
getSeverity()
Long
getSeverityOrdinal()
Deprecated.String
getStatus()
Long
getStatusOrdinal()
Deprecated.int
hashCode()
void
setCount(Long count)
void
setFirstOccurrenceDateTime(org.joda.time.DateTime firstOccurenceTime)
void
setFirstOccurrenceTime(Date firstOccurenceTime)
Deprecated.void
setHistory(AuditRecordCollectionRepresentation history)
void
setSeverity(String severity)
Set the severity of this alarm.void
setSeverityOrdinal(Long severityOrdinal)
Deprecated.void
setStatus(String status)
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
-
-
-
-
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
-
getSeverityOrdinal
@JSONProperty(ignoreIfNull=true) @Deprecated public Long getSeverityOrdinal()
Deprecated.Severity ordinal property is internally used by platform.- Returns:
-
setSeverityOrdinal
@Deprecated public void setSeverityOrdinal(Long severityOrdinal)
Deprecated.Severity ordinal property is internally used by platform and can't be overridden.- Parameters:
severityOrdinal
-
-
getStatusOrdinal
@JSONProperty(ignoreIfNull=true) @Deprecated public Long getStatusOrdinal()
Deprecated.Status ordinal property is internally used by platform.- Returns:
-
setStatusOrdinal
@Deprecated public void setStatusOrdinal(Long statusOrdinal)
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
public void setHistory(AuditRecordCollectionRepresentation history)
-
getCount
@JSONProperty(ignoreIfNull=true) public Long getCount()
-
setCount
public void setCount(Long count)
-
getFirstOccurrenceTime
@JSONProperty(value="deprecated_FirstOccurrenceTime", ignore=true) @Deprecated public Date getFirstOccurrenceTime()
Deprecated.
-
setFirstOccurrenceTime
@Deprecated public void setFirstOccurrenceTime(Date firstOccurenceTime)
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
public boolean equals(Object o)
- Overrides:
equals
in classEventRepresentation
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classEventRepresentation
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classEventRepresentation
-
-