Class ConditionFailingPeriods
java.lang.Object
com.azure.resourcemanager.monitor.models.ConditionFailingPeriods
The minimum number of violations required within the selected lookback time window required to raise an alert.
Relevant only for rules of the kind LogAlert.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConditionFailingPeriods class. -
Method Summary
Modifier and TypeMethodDescriptionGet the minFailingPeriodsToAlert property: The number of violations to trigger an alert.Get the numberOfEvaluationPeriods property: The number of aggregated lookback points.voidvalidate()Validates the instance.withMinFailingPeriodsToAlert(Long minFailingPeriodsToAlert) Set the minFailingPeriodsToAlert property: The number of violations to trigger an alert.withNumberOfEvaluationPeriods(Long numberOfEvaluationPeriods) Set the numberOfEvaluationPeriods property: The number of aggregated lookback points.
-
Constructor Details
-
ConditionFailingPeriods
public ConditionFailingPeriods()Creates an instance of ConditionFailingPeriods class.
-
-
Method Details
-
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. Default value is 1.- Returns:
- the numberOfEvaluationPeriods value.
-
withNumberOfEvaluationPeriods
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. Default value is 1.- Parameters:
numberOfEvaluationPeriods- the numberOfEvaluationPeriods value to set.- Returns:
- the ConditionFailingPeriods object itself.
-
minFailingPeriodsToAlert
Get the minFailingPeriodsToAlert property: The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1.- Returns:
- the minFailingPeriodsToAlert value.
-
withMinFailingPeriodsToAlert
Set the minFailingPeriodsToAlert property: The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1.- Parameters:
minFailingPeriodsToAlert- the minFailingPeriodsToAlert value to set.- Returns:
- the ConditionFailingPeriods object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-