public class InitialAlertEvent extends AlertEvent
InitialAlertEvent is fired the first time that an alert is
received from an agent. This is different from a
AlertStateChangeEvent since there is no state change occurring for
the first alert being received.m_alert, m_alerts, m_clusterId| Constructor and Description |
|---|
InitialAlertEvent(long clusterId,
Alert alert,
AlertCurrentEntity currentAlert)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AlertCurrentEntity |
getCurrentAlert()
Gets the current alert.
|
AlertHistoryEntity |
getNewHistoricalEntry()
Gets the newly created item in alert history.
|
String |
toString() |
getAlert, getAlerts, getClusterIdpublic InitialAlertEvent(long clusterId,
Alert alert,
AlertCurrentEntity currentAlert)
clusterId - the ID of the clusteralert - the alert that was received.currentAlert - the current alert created or updated.public AlertCurrentEntity getCurrentAlert()
public AlertHistoryEntity getNewHistoricalEntry()
Copyright © 2022 Apache Software Foundation. All rights reserved.