Class DynamicThresholdFailingPeriods

java.lang.Object
com.microsoft.azure.management.monitor.DynamicThresholdFailingPeriods

public class DynamicThresholdFailingPeriods extends Object
The minimum number of violations required within the selected lookback time window required to raise an alert.
  • Constructor Details

    • DynamicThresholdFailingPeriods

      public DynamicThresholdFailingPeriods()
  • Method Details

    • numberOfEvaluationPeriods

      public double numberOfEvaluationPeriods()
      Get the number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
      Returns:
      the numberOfEvaluationPeriods value
    • withNumberOfEvaluationPeriods

      public DynamicThresholdFailingPeriods withNumberOfEvaluationPeriods(double numberOfEvaluationPeriods)
      Set the number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
      Parameters:
      numberOfEvaluationPeriods - the numberOfEvaluationPeriods value to set
      Returns:
      the DynamicThresholdFailingPeriods object itself.
    • minFailingPeriodsToAlert

      public double minFailingPeriodsToAlert()
      Get the number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
      Returns:
      the minFailingPeriodsToAlert value
    • withMinFailingPeriodsToAlert

      public DynamicThresholdFailingPeriods withMinFailingPeriodsToAlert(double minFailingPeriodsToAlert)
      Set the number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
      Parameters:
      minFailingPeriodsToAlert - the minFailingPeriodsToAlert value to set
      Returns:
      the DynamicThresholdFailingPeriods object itself.