Class AlarmRepresentation

All Implemented Interfaces:
ResourceRepresentation, SourceableRepresentation, org.svenson.DynamicProperties

public class AlarmRepresentation extends EventRepresentation
  • Constructor Details

    • AlarmRepresentation

      public AlarmRepresentation()
  • Method Details

    • 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 class EventRepresentation
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class EventRepresentation
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class EventRepresentation