public final class MetricAnomalyAlertConfiguration extends Object
Constructor and Description |
---|
MetricAnomalyAlertConfiguration(String detectionConfigurationId,
MetricAnomalyAlertScope alertScope)
Creates a new instance of MetricAnomalyAlertConfiguration.
|
MetricAnomalyAlertConfiguration(String detectionConfigurationId,
MetricAnomalyAlertScope alertScope,
boolean negationOperation)
Creates a new instance of MetricAnomalyAlertConfiguration.
|
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.
|
MetricAnomalyAlertConfiguration |
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.
|
MetricAnomalyAlertConfiguration |
setAlertSnoozeCondition(MetricAnomalyAlertSnoozeCondition snoozeCondition)
Sets the snooze condition.
|
MetricAnomalyAlertConfiguration |
setNegationOperation(boolean negationOperation)
Sets the negation value.
|
MetricAnomalyAlertConfiguration |
setScopeOfAlertTo(MetricAnomalyAlertScope alertScope)
Sets the alert scope.
|
public MetricAnomalyAlertConfiguration(String detectionConfigurationId, MetricAnomalyAlertScope alertScope)
detectionConfigurationId
- The anomaly detection configuration id.alertScope
- The scope for the alert.public MetricAnomalyAlertConfiguration(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 MetricAnomalyAlertConfiguration setNegationOperation(boolean negationOperation)
negationOperation
- The negation operation value.public MetricAnomalyAlertConfiguration setScopeOfAlertTo(MetricAnomalyAlertScope alertScope)
alertScope
- The alert scope.public MetricAnomalyAlertConfiguration setAlertConditions(MetricAnomalyAlertConditions alertConditions)
alertConditions
- The alert conditions.public MetricAnomalyAlertConfiguration setAlertSnoozeCondition(MetricAnomalyAlertSnoozeCondition snoozeCondition)
snoozeCondition
- The snooze condition.Copyright © 2021 Microsoft Corporation. All rights reserved.