DynamicThresholdFailingPeriods Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. DynamicThresholdFailingPeriods
- com.
Implements
public final class DynamicThresholdFailingPeriods
implements JsonSerializable<DynamicThresholdFailingPeriods>
The minimum number of violations required within the selected lookback time window required to raise an alert.
Constructor Summary
Constructor | Description |
---|---|
DynamicThresholdFailingPeriods() |
Creates an instance of Dynamic |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Dynamic |
fromJson(JsonReader jsonReader)
Reads an instance of Dynamic |
float |
minFailingPeriodsToAlert()
Get the min |
float |
numberOfEvaluationPeriods()
Get the number |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Dynamic |
withMinFailingPeriodsToAlert(float minFailingPeriodsToAlert)
Set the min |
Dynamic |
withNumberOfEvaluationPeriods(float numberOfEvaluationPeriods)
Set the number |
Methods inherited from java.lang.Object
Constructor Details
DynamicThresholdFailingPeriods
public DynamicThresholdFailingPeriods()
Creates an instance of DynamicThresholdFailingPeriods class.
Method Details
fromJson
public static DynamicThresholdFailingPeriods fromJson(JsonReader jsonReader)
Reads an instance of DynamicThresholdFailingPeriods from the JsonReader.
Parameters:
Returns:
Throws:
minFailingPeriodsToAlert
public float minFailingPeriodsToAlert()
Get the minFailingPeriodsToAlert property: The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
Returns:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java