Class DynamicThresholdFailingPeriods
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.DynamicThresholdFailingPeriods
-
public final class DynamicThresholdFailingPeriods extends Object
The minimum number of violations required within the selected lookback time window required to raise an alert.
-
-
Constructor Summary
Constructors Constructor Description DynamicThresholdFailingPeriods()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatminFailingPeriodsToAlert()Get the minFailingPeriodsToAlert property: The number of violations to trigger an alert.floatnumberOfEvaluationPeriods()Get the numberOfEvaluationPeriods property: The number of aggregated lookback points.voidvalidate()Validates the instance.DynamicThresholdFailingPeriodswithMinFailingPeriodsToAlert(float minFailingPeriodsToAlert)Set the minFailingPeriodsToAlert property: The number of violations to trigger an alert.DynamicThresholdFailingPeriodswithNumberOfEvaluationPeriods(float numberOfEvaluationPeriods)Set the numberOfEvaluationPeriods property: The number of aggregated lookback points.
-
-
-
Method Detail
-
numberOfEvaluationPeriods
public float numberOfEvaluationPeriods()
Get the numberOfEvaluationPeriods property: 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(float numberOfEvaluationPeriods)
Set the numberOfEvaluationPeriods property: 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 float minFailingPeriodsToAlert()
Get the minFailingPeriodsToAlert property: The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.- Returns:
- the minFailingPeriodsToAlert value.
-
withMinFailingPeriodsToAlert
public DynamicThresholdFailingPeriods withMinFailingPeriodsToAlert(float minFailingPeriodsToAlert)
Set the minFailingPeriodsToAlert property: 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-