@InterfaceStability.Evolving public interface AnomalyNotifier extends CruiseControlConfigurable
Modifier and Type | Method and Description |
---|---|
AnomalyNotificationResult |
onBrokerFailure(BrokerFailures brokerFailures)
The method will be called when a broker failure has been detected.
|
AnomalyNotificationResult |
onGoalViolation(GoalViolations goalViolations)
When a particular goal is violated this method will be called.
|
java.util.Map<AnomalyType,java.lang.Boolean> |
selfHealingEnabled()
Check whether the self healing is enabled for different anomaly types.
|
java.util.Map<AnomalyType,java.lang.Float> |
selfHealingEnabledRatio()
Get the ratio during which the self-healing is enabled over the total operating time.
|
boolean |
setSelfHealingFor(AnomalyType anomalyType,
boolean isSelfHealingEnabled)
Enable or disable self healing for the given anomaly type.
|
long |
uptimeMs(long nowMs) |
configure
AnomalyNotificationResult onGoalViolation(GoalViolations goalViolations)
goalViolations
- The detected goal violations.AnomalyNotificationResult.Action
.AnomalyNotificationResult onBrokerFailure(BrokerFailures brokerFailures)
brokerFailures
- the detected broker failuresAnomalyNotificationResult.Action
.java.util.Map<AnomalyType,java.lang.Boolean> selfHealingEnabled()
boolean setSelfHealingFor(AnomalyType anomalyType, boolean isSelfHealingEnabled)
anomalyType
- Type of anomaly for which to enable or disable self healing.isSelfHealingEnabled
- True if self healing is enabled, false otherwise.java.util.Map<AnomalyType,java.lang.Float> selfHealingEnabledRatio()
long uptimeMs(long nowMs)
nowMs
- Current time in ms.