public class DefaultAlertEvent extends AbstractAlertEvent
Constructor and Description |
---|
DefaultAlertEvent(AlertEvent event) |
DefaultAlertEvent(java.lang.String system,
java.lang.String path,
java.lang.String stateName,
AlertSeverity stateSeverity,
java.lang.Double activeValue,
java.util.Date activeTimestamp,
java.lang.Double clearedValue,
java.util.Date clearedTimestamp,
java.lang.String user,
java.util.Date acknowledgedTimestamp,
java.lang.String displayPath,
java.lang.String notes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getAcknowledgedTimestamp()
Returns the active timestamp of the alert or null if not acknowledged.
|
java.util.Date |
getActiveTimestamp()
Returns the active timestamp of the alert or null if not active.
|
java.lang.Double |
getActiveValue()
Returns the active value of the alert or null if not active.
|
java.util.Date |
getClearedTimestamp()
Returns the cleared timestamp of the alert or null if not cleared.
|
java.lang.Double |
getClearedValue()
Returns the cleared value of the alert or null if not cleared.
|
java.lang.String |
getDisplayPath()
Returns a user-entered path for the alert.
|
java.lang.String |
getNotes()
Returns user-entered notes for the alert.
|
java.lang.String |
getPath()
Returns the path of the source, such as the path to a SQLTag, which should be reasonably unique.
|
java.lang.String |
getStateName()
Returns the name of the alert state that was triggered
|
AlertSeverity |
getStateSeverity()
Returns the severity of the alert state
|
java.lang.String |
getSystem()
Returns the name of the SCADARail system responsible for the alert
|
java.lang.String |
getUser()
Returns a username associated with the message or null if not set.
|
int |
hashCode() |
java.lang.String |
toString() |
isAcked, isActive, isClear
public DefaultAlertEvent(AlertEvent event)
public DefaultAlertEvent(java.lang.String system, java.lang.String path, java.lang.String stateName, AlertSeverity stateSeverity, java.lang.Double activeValue, java.util.Date activeTimestamp, java.lang.Double clearedValue, java.util.Date clearedTimestamp, java.lang.String user, java.util.Date acknowledgedTimestamp, java.lang.String displayPath, java.lang.String notes)
public java.util.Date getAcknowledgedTimestamp()
AlertEvent
public java.util.Date getActiveTimestamp()
AlertEvent
public java.lang.Double getActiveValue()
AlertEvent
public java.util.Date getClearedTimestamp()
AlertEvent
public java.lang.Double getClearedValue()
AlertEvent
public java.lang.String getPath()
AlertEvent
public java.lang.String getDisplayPath()
AlertEvent
public java.lang.String getNotes()
AlertEvent
public java.lang.String getStateName()
AlertEvent
public AlertSeverity getStateSeverity()
AlertEvent
public java.lang.String getSystem()
AlertEvent
public java.lang.String getUser()
AlertEvent
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object