Class SuppressCondition

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

public final class SuppressCondition extends Object
Type that describes suppress condition for anomalies.
  • Constructor Details

    • SuppressCondition

      public SuppressCondition(int minNumber, double minRatio)
      Create an instance of SuppressCondition describing how to suppress anomaly reporting.

      Anomalies from metrics with higher granularity can be noisy, using SuppressCondition user can inform the detector to not to report the anomalies until minRatio percentage of last minNumber data points are detected as anomalies.

      Parameters:
      minNumber - the number of latest data points to consider for detection.
      minRatio - the percentage of the minNumber data points to be anomalies before reporting.
  • Method Details

    • getMinNumber

      public Integer getMinNumber()
      Gets the number of latest data points to consider for detection.
      Returns:
      the minimum number value.
    • getMinRatio

      public Double getMinRatio()
      Gets the percentage of the minNumber data points to be anomalies before reporting.
      Returns:
      the minimum ratio value.
    • setMinNumber

      public SuppressCondition setMinNumber(Integer minNumber)
      Sets the number of latest data points to consider for detection, the value should be in the range : [1, +∞).
      Parameters:
      minNumber - the minNumber value to set.
      Returns:
      the SuppressCondition object itself.
    • setMinRatio

      public SuppressCondition setMinRatio(Double minRatio)
      Sets the percentage of the minNumber data points to be anomalies before reporting, the value should be in the range : (0, 100].
      Parameters:
      minRatio - the minRatio value to set.
      Returns:
      the SuppressCondition object itself.