Class DefaultAlertEvent
java.lang.Object
com.inductiveautomation.ignition.common.alert.AbstractAlertEvent
com.inductiveautomation.ignition.common.alert.DefaultAlertEvent
- All Implemented Interfaces:
AlertEvent
,Serializable
A simple immutable implementation of AlertEvent
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAlertEvent
(AlertEvent event) DefaultAlertEvent
(String system, String path, String stateName, AlertSeverity stateSeverity, Double activeValue, Date activeTimestamp, Double clearedValue, Date clearedTimestamp, String user, Date acknowledgedTimestamp, String displayPath, String notes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the active timestamp of the alert ornull
if not acknowledged.Returns the active timestamp of the alert ornull
if not active.Returns the active value of the alert ornull
if not active.Returns the cleared timestamp of the alert ornull
if not cleared.Returns the cleared value of the alert ornull
if not cleared.Returns a user-entered path for the alert.getNotes()
Returns user-entered notes for the alert.getPath()
Returns the path of the source, such as the path to a SQLTag, which should be reasonably unique.Returns the name of the alert state that was triggeredReturns the severity of the alert stateReturns the name of the SCADARail system responsible for the alertgetUser()
Returns a username associated with the message ornull
if not set.int
hashCode()
toString()
Methods inherited from class com.inductiveautomation.ignition.common.alert.AbstractAlertEvent
isAcked, isActive, isClear
-
Constructor Details
-
DefaultAlertEvent
-
DefaultAlertEvent
-
-
Method Details
-
getAcknowledgedTimestamp
Description copied from interface:AlertEvent
Returns the active timestamp of the alert ornull
if not acknowledged. -
getActiveTimestamp
Description copied from interface:AlertEvent
Returns the active timestamp of the alert ornull
if not active. -
getActiveValue
Description copied from interface:AlertEvent
Returns the active value of the alert ornull
if not active. -
getClearedTimestamp
Description copied from interface:AlertEvent
Returns the cleared timestamp of the alert ornull
if not cleared. -
getClearedValue
Description copied from interface:AlertEvent
Returns the cleared value of the alert ornull
if not cleared. -
getPath
Description copied from interface:AlertEvent
Returns the path of the source, such as the path to a SQLTag, which should be reasonably unique. That is, there should not be another alert with the same path in the same SCADARail system. This path lets alert handlers correlate ACKS and CLEARS with their initial ALERTs -
getDisplayPath
Description copied from interface:AlertEvent
Returns a user-entered path for the alert. -
getNotes
Description copied from interface:AlertEvent
Returns user-entered notes for the alert. -
getStateName
Description copied from interface:AlertEvent
Returns the name of the alert state that was triggered -
getStateSeverity
Description copied from interface:AlertEvent
Returns the severity of the alert state -
getSystem
Description copied from interface:AlertEvent
Returns the name of the SCADARail system responsible for the alert -
getUser
Description copied from interface:AlertEvent
Returns a username associated with the message ornull
if not set. Mostly used for Acknowledgements. -
hashCode
public int hashCode() -
equals
-
toString
-