DynamicThresholdFailingPeriods Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.DynamicThresholdFailingPeriods

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 DynamicThresholdFailingPeriods class.

Method Summary

Modifier and Type Method and Description
static DynamicThresholdFailingPeriods fromJson(JsonReader jsonReader)

Reads an instance of DynamicThresholdFailingPeriods from the JsonReader.

float minFailingPeriodsToAlert()

Get the minFailingPeriodsToAlert property: The number of violations to trigger an alert.

float numberOfEvaluationPeriods()

Get the numberOfEvaluationPeriods property: The number of aggregated lookback points.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DynamicThresholdFailingPeriods withMinFailingPeriodsToAlert(float minFailingPeriodsToAlert)

Set the minFailingPeriodsToAlert property: The number of violations to trigger an alert.

DynamicThresholdFailingPeriods withNumberOfEvaluationPeriods(float numberOfEvaluationPeriods)

Set the numberOfEvaluationPeriods property: The number of aggregated lookback points.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of DynamicThresholdFailingPeriods if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

minFailingPeriodsToAlert - the minFailingPeriodsToAlert value to set.

Returns:

the DynamicThresholdFailingPeriods object itself.

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.

Applies to