Class DynamicThresholdFailingPeriods
java.lang.Object
com.microsoft.azure.management.monitor.DynamicThresholdFailingPeriods
The minimum number of violations required within the selected lookback time
window required to raise an alert.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the number of violations to trigger an alert.double
Get the number of aggregated lookback points.withMinFailingPeriodsToAlert
(double minFailingPeriodsToAlert) Set the number of violations to trigger an alert.withNumberOfEvaluationPeriods
(double numberOfEvaluationPeriods) Set the number of aggregated lookback points.
-
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
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.
-