MetricAnomalyAlertConditions Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. MetricAnomalyAlertConditions
- com.
public final class MetricAnomalyAlertConditions
Defines conditions to decide whether the detected anomalies should be included in an alert or not.
Constructor Summary
Constructor | Description |
---|---|
MetricAnomalyAlertConditions() |
Creates a new instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
Metric |
getMetricBoundaryCondition()
Gets the boundary condition, an anomaly will be included in the alert if it's value is not within the boundary. |
Severity |
getSeverityCondition()
Gets the severity range based condition, an anomaly will be included in the alert only if it's severity falls in the range. |
Metric |
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. |
Metric |
setSeverityCondition(AnomalySeverity min, AnomalySeverity max)
Sets the severity range based condition, an anomaly will be included in the alert only if it's severity falls in the range. |
Metric |
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. |
Methods inherited from java.lang.Object
Constructor Details
MetricAnomalyAlertConditions
public MetricAnomalyAlertConditions()
Creates a new instance of MetricAnomalyAlertConditions.
Method Details
getMetricBoundaryCondition
public MetricBoundaryCondition getMetricBoundaryCondition()
Gets the boundary condition, an anomaly will be included in the alert if it's value is not within the boundary.
Returns:
getSeverityCondition
public SeverityCondition 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:
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:
Returns:
setSeverityCondition
public MetricAnomalyAlertConditions setSeverityCondition(AnomalySeverity min, AnomalySeverity max)
Sets the severity range based condition, an anomaly will be included in the alert only if it's severity falls in the range.
Parameters:
Returns:
setSeverityRangeCondition
public MetricAnomalyAlertConditions 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.
Parameters:
Returns:
Applies to
Azure SDK for Java