Class MetricAnomalyAlertConditions

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

public final class MetricAnomalyAlertConditions extends Object
Defines conditions to decide whether the detected anomalies should be included in an alert or not.
  • Constructor Details

    • MetricAnomalyAlertConditions

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