public class AlertStateChangeEvent extends AlertEvent
AlertStateChangeEvent is fired when an Alert instance has
its AlertState changed or has it's AlertFirmness changed.
An AlertState change coupled with a AlertFirmness.HARD
firmness is what would eventually trigger notifications to be created.m_alert, m_alerts, m_clusterId| Constructor and Description |
|---|
AlertStateChangeEvent(long clusterId,
Alert alert,
AlertCurrentEntity currentAlert,
AlertState fromState,
AlertFirmness fromFirmness)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AlertCurrentEntity |
getCurrentAlert()
Gets the current alert.
|
AlertFirmness |
getFromFirmness()
Gets the prior firmness of the alert.
|
AlertState |
getFromState()
Gets the prior state of the alert.
|
AlertHistoryEntity |
getNewHistoricalEntry()
Gets the newly created item in alert history.
|
String |
toString() |
getAlert, getAlerts, getClusterIdpublic AlertStateChangeEvent(long clusterId,
Alert alert,
AlertCurrentEntity currentAlert,
AlertState fromState,
AlertFirmness fromFirmness)
clusterId - alert - currentAlert - fromState - fromFirmness - public AlertCurrentEntity getCurrentAlert()
public AlertHistoryEntity getNewHistoricalEntry()
public AlertState getFromState()
public AlertFirmness getFromFirmness()
Copyright © 2022 Apache Software Foundation. All rights reserved.