public class AlarmRepresentation extends EventRepresentation
Constructor and Description |
---|
AlarmRepresentation() |
Modifier and Type | Method and 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() |
String |
getStatus() |
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 |
setStatus(String status)
Set the status of this alarm.
|
getCreationDateTime, getCreationTime, getDateTime, getExternalSource, getId, getSource, getText, getTime, getType, setCreationDateTime, setCreationTime, setDateTime, setExternalSource, setId, setSource, setText, setTime, setType
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
getSelf, getSelfDecoded, setSelf, toJSON, toString
@JSONProperty(ignoreIfNull=true) public String getStatus()
public void setStatus(String status)
status
- Typical values are active, acknowledged or cleared@JSONProperty(ignoreIfNull=true) public String getSeverity()
public void setSeverity(String severity)
severity
- Typical values are: critical, major, minor and warning@Deprecated @JSONProperty(ignoreIfNull=true) public AuditRecordCollectionRepresentation getHistory()
public void setHistory(AuditRecordCollectionRepresentation history)
@JSONProperty(ignoreIfNull=true) public Long getCount()
public void setCount(Long count)
@JSONProperty(value="deprecated_FirstOccurrenceTime", ignore=true) @Deprecated public Date getFirstOccurrenceTime()
@Deprecated public void setFirstOccurrenceTime(Date firstOccurenceTime)
@JSONProperty(value="firstOccurrenceTime", ignoreIfNull=true) @JSONConverter(type=com.cumulocity.model.DateTimeConverter.class) public org.joda.time.DateTime getFirstOccurrenceDateTime()
public void setFirstOccurrenceDateTime(org.joda.time.DateTime firstOccurenceTime)
public boolean equals(Object o)
equals
in class EventRepresentation
protected boolean canEqual(Object other)
canEqual
in class EventRepresentation
public int hashCode()
hashCode
in class EventRepresentation
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.