MetricAlertCriteria Class

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

Implements

public class MetricAlertCriteria
implements JsonSerializable<MetricAlertCriteria>

The rule criteria that defines the conditions of the alert rule.

Constructor Summary

Constructor Description
MetricAlertCriteria()

Creates an instance of MetricAlertCriteria class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: The rule criteria that defines the conditions of the alert rule.

static MetricAlertCriteria fromJson(JsonReader jsonReader)

Reads an instance of MetricAlertCriteria from the JsonReader.

Odatatype odataType()

Get the odataType property: specifies the type of the alert criteria.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MetricAlertCriteria withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: The rule criteria that defines the conditions of the alert rule.

Methods inherited from java.lang.Object

Constructor Details

MetricAlertCriteria

public MetricAlertCriteria()

Creates an instance of MetricAlertCriteria class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: The rule criteria that defines the conditions of the alert rule.

Returns:

the additionalProperties value.

fromJson

public static MetricAlertCriteria fromJson(JsonReader jsonReader)

Reads an instance of MetricAlertCriteria from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the MetricAlertCriteria.

odataType

public Odatatype odataType()

Get the odataType property: specifies the type of the alert criteria.

Returns:

the odataType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MetricAlertCriteria withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: The rule criteria that defines the conditions of the alert rule.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MetricAlertCriteria object itself.

Applies to