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, isClearpublic 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()
AlertEventpublic java.util.Date getActiveTimestamp()
AlertEventpublic java.lang.Double getActiveValue()
AlertEventpublic java.util.Date getClearedTimestamp()
AlertEventpublic java.lang.Double getClearedValue()
AlertEventpublic java.lang.String getPath()
AlertEventpublic java.lang.String getDisplayPath()
AlertEventpublic java.lang.String getNotes()
AlertEventpublic java.lang.String getStateName()
AlertEventpublic AlertSeverity getStateSeverity()
AlertEventpublic java.lang.String getSystem()
AlertEventpublic java.lang.String getUser()
AlertEventpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object