public final class MetricAlertConfiguration extends Object
Constructor and Description |
---|
MetricAlertConfiguration(String detectionConfigurationId,
MetricAnomalyAlertScope alertScope)
Creates a new instance of MetricAlertConfiguration.
|
MetricAlertConfiguration(String detectionConfigurationId,
MetricAnomalyAlertScope alertScope,
boolean negationOperation)
Creates a new instance of MetricAlertConfiguration.
|
Modifier and Type | Method and Description |
---|---|
MetricAnomalyAlertConditions |
getAlertConditions()
Gets the conditions applied on the detected anomalies to decide whether it should be included
in the alert or not.
|
MetricAnomalyAlertScope |
getAlertScope()
Gets the alert scope.
|
MetricAnomalyAlertSnoozeCondition |
getAlertSnoozeCondition()
Gets the condition to snooze the inclusion of anomalies in the upcoming alerts.
|
String |
getDetectionConfigurationId()
Gets the anomaly detection configuration id.
|
Boolean |
isNegationOperationEnabled()
True if this configuration is used only as an expression to take part in the operation
performed among corresponding series in other configurations.
|
MetricAlertConfiguration |
setAlertConditions(MetricAnomalyAlertConditions alertConditions)
Sets the conditions to be applied on the detected anomalies to decide whether it should be included
in the alert or not.
|
MetricAlertConfiguration |
setAlertSnoozeCondition(MetricAnomalyAlertSnoozeCondition snoozeCondition)
Sets the snooze condition.
|
MetricAlertConfiguration |
setNegationOperation(boolean negationOperation)
Sets the negation value.
|
MetricAlertConfiguration |
setScopeOfAlertTo(MetricAnomalyAlertScope alertScope)
Sets the alert scope.
|
public MetricAlertConfiguration(String detectionConfigurationId, MetricAnomalyAlertScope alertScope)
detectionConfigurationId
- The anomaly detection configuration id.alertScope
- The scope for the alert.public MetricAlertConfiguration(String detectionConfigurationId, MetricAnomalyAlertScope alertScope, boolean negationOperation)
detectionConfigurationId
- The anomaly detection configuration id.alertScope
- The scope for the alert.negationOperation
- if true anomalies in this configuration will not be included in alerts,
instead result of applying the configuration become an expression to take part in the operation
performed among corresponding series in other configurations. The result of expression is true
only if there is no anomaly found in the series.public String getDetectionConfigurationId()
public Boolean isNegationOperationEnabled()
public MetricAnomalyAlertScope getAlertScope()
public MetricAnomalyAlertConditions getAlertConditions()
public MetricAnomalyAlertSnoozeCondition getAlertSnoozeCondition()
public MetricAlertConfiguration setNegationOperation(boolean negationOperation)
negationOperation
- The negation operation value.public MetricAlertConfiguration setScopeOfAlertTo(MetricAnomalyAlertScope alertScope)
alertScope
- The alert scope.public MetricAlertConfiguration setAlertConditions(MetricAnomalyAlertConditions alertConditions)
alertConditions
- The alert conditions.public MetricAlertConfiguration setAlertSnoozeCondition(MetricAnomalyAlertSnoozeCondition snoozeCondition)
snoozeCondition
- The snooze condition.Copyright © 2021 Microsoft Corporation. All rights reserved.