public class AlertDefinitionRegistrationEvent extends ClusterEvent
AlertDefinitionRegistrationEvent
is used to represent that an
AlertDefinition
is now a part of the system. This usually happens at
startup when the alerts are being merged from the stack. It also occurs when
a new alert is created via the REST APIs or when a new service is installed.AmbariEvent.AmbariEventType
m_clusterId
m_eventType
Constructor and Description |
---|
AlertDefinitionRegistrationEvent(long clusterId,
AlertDefinition definition)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AlertDefinition |
getDefinition()
Get the registered alert definition.
|
getClusterId
getType, toString
public AlertDefinitionRegistrationEvent(long clusterId, AlertDefinition definition)
clusterId
- the ID of the cluster that the definition is in.definition
- the alert definition being registered.public AlertDefinition getDefinition()
null
).Copyright © 2022 Apache Software Foundation. All rights reserved.