MetricAnomalyAlertConditions Class

  • java.lang.Object
    • com.azure.ai.metricsadvisor.administration.models.MetricAnomalyAlertConditions

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 MetricAnomalyAlertConditions.

Method Summary

Modifier and Type Method and Description
MetricBoundaryCondition getMetricBoundaryCondition()

Gets the boundary condition, an anomaly will be included in the alert if it's value is not within the boundary.

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.

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.

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.

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.

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:

The boundary condition.

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:

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

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:

min - The lower bound of severity range.
max - The upper bound of severity range.

Returns:

The MetricAnomalyAlertConditions object itself.

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:

severityCondition - The condition based on severity of anomalies.

Returns:

The MetricAnomalyAlertConditions object itself.

Applies to