Class MetricAnomalyAlertConditions
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.MetricAnomalyAlertConditions
Defines conditions to decide whether the detected anomalies should be
included in an alert or not.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the boundary condition, an anomaly will be included in the alert if it's value is not within the boundary.Gets the severity range based condition, an anomaly will be included in the alert only if it's severity falls in the range.setMetricBoundaryCondition
(MetricBoundaryCondition boundaryCondition) Gets the boundary condition, an anomaly will be included in the alert only if it's value is not within the boundary.Sets the severity range based condition, an anomaly will be included in the alert only if it's severity falls in the range.setSeverityRangeCondition
(SeverityCondition severityCondition) Sets the severity range based condition, an anomaly will be included in the alert only if it's severity falls in the range.
-
Constructor Details
-
MetricAnomalyAlertConditions
public MetricAnomalyAlertConditions()
-
-
Method Details
-
getMetricBoundaryCondition
Gets the boundary condition, an anomaly will be included in the alert if it's value is not within the boundary.- Returns:
- The boundary condition.
-
getSeverityCondition
Gets the severity range based condition, an anomaly will be included in the alert only if it's severity falls in the range.- Returns:
- The severity condition.
-
setMetricBoundaryCondition
public MetricAnomalyAlertConditions setMetricBoundaryCondition(MetricBoundaryCondition boundaryCondition) Gets the boundary condition, an anomaly will be included in the alert only if it's value is not within the boundary.- Parameters:
boundaryCondition
- The boundary condition.- Returns:
- The MetricAnomalyAlertConditions object itself.
-
setSeverityCondition
Sets the severity range based condition, an anomaly will be included in the alert only if it's severity falls in the range.- Parameters:
min
- The lower bound of severity range.max
- The upper bound of severity range.- Returns:
- The MetricAnomalyAlertConditions object itself.
-
setSeverityRangeCondition
Sets the severity range based condition, an anomaly will be included in the alert only if it's severity falls in the range.- Parameters:
severityCondition
- The condition based on severity of anomalies.- Returns:
- The MetricAnomalyAlertConditions object itself.
-