MetricAlertConfiguration Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. MetricAlertConfiguration
- com.
public final class MetricAlertConfiguration
Defines alerting settings for anomalies detected by a detection configuration.
Constructor Summary
Constructor | Description |
---|---|
MetricAlertConfiguration(String detectionConfigurationId, MetricAnomalyAlertScope alertScope) |
Creates a new instance of Metric |
MetricAlertConfiguration(String detectionConfigurationId, MetricAnomalyAlertScope alertScope, boolean negationOperation) |
Creates a new instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
Metric |
getAlertConditions()
Gets the conditions applied on the detected anomalies to decide whether it should be included in the alert or not. |
Metric |
getAlertScope()
Gets the alert scope. |
Metric |
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. |
Metric |
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. |
Metric |
setAlertSnoozeCondition(MetricAnomalyAlertSnoozeCondition snoozeCondition)
Sets the snooze condition. |
Metric |
setNegationOperation(boolean negationOperation)
Sets the negation value. |
Metric |
setScopeOfAlertTo(MetricAnomalyAlertScope alertScope)
Sets the alert scope. |
Methods inherited from java.lang.Object
Constructor Details
MetricAlertConfiguration
public MetricAlertConfiguration(String detectionConfigurationId, MetricAnomalyAlertScope alertScope)
Creates a new instance of MetricAlertConfiguration.
Parameters:
MetricAlertConfiguration
public MetricAlertConfiguration(String detectionConfigurationId, MetricAnomalyAlertScope alertScope, boolean negationOperation)
Creates a new instance of MetricAlertConfiguration.
Parameters:
Method Details
getAlertConditions
public MetricAnomalyAlertConditions getAlertConditions()
Gets the conditions applied on the detected anomalies to decide whether it should be included in the alert or not.
Returns:
getAlertScope
public MetricAnomalyAlertScope getAlertScope()
Gets the alert scope.
Returns:
getAlertSnoozeCondition
public MetricAnomalyAlertSnoozeCondition getAlertSnoozeCondition()
Gets the condition to snooze the inclusion of anomalies in the upcoming alerts.
Returns:
getDetectionConfigurationId
public String getDetectionConfigurationId()
Gets the anomaly detection configuration id.
Returns:
isNegationOperationEnabled
public 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.
Returns:
setAlertConditions
public 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.
Parameters:
Returns:
setAlertSnoozeCondition
public MetricAlertConfiguration setAlertSnoozeCondition(MetricAnomalyAlertSnoozeCondition snoozeCondition)
Sets the snooze condition. Once anomalies are alerted, this condition will be used to snooze the inclusion of anomalies in upcoming alerts.
Parameters:
Returns:
setNegationOperation
public MetricAlertConfiguration setNegationOperation(boolean negationOperation)
Sets the negation value. 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.
Parameters:
Returns:
setScopeOfAlertTo
public MetricAlertConfiguration setScopeOfAlertTo(MetricAnomalyAlertScope alertScope)
Sets the alert scope.
Parameters:
Returns:
Applies to
Azure SDK for Java