public abstract class AlertEvent extends Object
AlertEvent
class is the base for all events related to alerts.Modifier and Type | Field and Description |
---|---|
protected Alert |
m_alert |
protected List<Alert> |
m_alerts |
protected long |
m_clusterId |
Constructor and Description |
---|
AlertEvent(List<Alert> m_alerts) |
AlertEvent(long clusterId,
Alert alert)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Alert |
getAlert()
Gets the alert that this event is created for.
|
List<Alert> |
getAlerts()
Gets list of alerts this event was created for
|
long |
getClusterId()
Gets the cluster ID that the alert belongs to.
|
protected long m_clusterId
protected Alert m_alert
public AlertEvent(long clusterId, Alert alert)
clusterId
- alert
- public long getClusterId()
public Alert getAlert()
null
).Copyright © 2022 Apache Software Foundation. All rights reserved.