MultiMetricCriteria Class

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

Implements

public class MultiMetricCriteria
implements JsonSerializable<MultiMetricCriteria>

The types of conditions for a multi resource alert.

Constructor Summary

Constructor Description
MultiMetricCriteria()

Creates an instance of MultiMetricCriteria class.

Method Summary

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

Get the additionalProperties property: The types of conditions for a multi resource alert.

CriterionType criterionType()

Get the criterionType property: Specifies the type of threshold criteria.

List<MetricDimension> dimensions()

Get the dimensions property: List of dimension conditions.

static MultiMetricCriteria fromJson(JsonReader jsonReader)

Reads an instance of MultiMetricCriteria from the JsonReader.

String metricName()

Get the metricName property: Name of the metric.

String metricNamespace()

Get the metricNamespace property: Namespace of the metric.

String name()

Get the name property: Name of the criteria.

Boolean skipMetricValidation()

Get the skipMetricValidation property: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.

AggregationTypeEnum timeAggregation()

Get the timeAggregation property: the criteria time aggregation types.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MultiMetricCriteria withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: The types of conditions for a multi resource alert.

MultiMetricCriteria withDimensions(List<MetricDimension> dimensions)

Set the dimensions property: List of dimension conditions.

MultiMetricCriteria withMetricName(String metricName)

Set the metricName property: Name of the metric.

MultiMetricCriteria withMetricNamespace(String metricNamespace)

Set the metricNamespace property: Namespace of the metric.

MultiMetricCriteria withName(String name)

Set the name property: Name of the criteria.

MultiMetricCriteria withSkipMetricValidation(Boolean skipMetricValidation)

Set the skipMetricValidation property: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.

MultiMetricCriteria withTimeAggregation(AggregationTypeEnum timeAggregation)

Set the timeAggregation property: the criteria time aggregation types.

Methods inherited from java.lang.Object

Constructor Details

MultiMetricCriteria

public MultiMetricCriteria()

Creates an instance of MultiMetricCriteria class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: The types of conditions for a multi resource alert.

Returns:

the additionalProperties value.

criterionType

public CriterionType criterionType()

Get the criterionType property: Specifies the type of threshold criteria.

Returns:

the criterionType value.

dimensions

public List dimensions()

Get the dimensions property: List of dimension conditions.

Returns:

the dimensions value.

fromJson

public static MultiMetricCriteria fromJson(JsonReader jsonReader)

Reads an instance of MultiMetricCriteria from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MultiMetricCriteria 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.

metricName

public String metricName()

Get the metricName property: Name of the metric.

Returns:

the metricName value.

metricNamespace

public String metricNamespace()

Get the metricNamespace property: Namespace of the metric.

Returns:

the metricNamespace value.

name

public String name()

Get the name property: Name of the criteria.

Returns:

the name value.

skipMetricValidation

public Boolean skipMetricValidation()

Get the skipMetricValidation property: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.

Returns:

the skipMetricValidation value.

timeAggregation

public AggregationTypeEnum timeAggregation()

Get the timeAggregation property: the criteria time aggregation types.

Returns:

the timeAggregation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MultiMetricCriteria withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: The types of conditions for a multi resource alert.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MultiMetricCriteria object itself.

withDimensions

public MultiMetricCriteria withDimensions(List dimensions)

Set the dimensions property: List of dimension conditions.

Parameters:

dimensions - the dimensions value to set.

Returns:

the MultiMetricCriteria object itself.

withMetricName

public MultiMetricCriteria withMetricName(String metricName)

Set the metricName property: Name of the metric.

Parameters:

metricName - the metricName value to set.

Returns:

the MultiMetricCriteria object itself.

withMetricNamespace

public MultiMetricCriteria withMetricNamespace(String metricNamespace)

Set the metricNamespace property: Namespace of the metric.

Parameters:

metricNamespace - the metricNamespace value to set.

Returns:

the MultiMetricCriteria object itself.

withName

public MultiMetricCriteria withName(String name)

Set the name property: Name of the criteria.

Parameters:

name - the name value to set.

Returns:

the MultiMetricCriteria object itself.

withSkipMetricValidation

public MultiMetricCriteria withSkipMetricValidation(Boolean skipMetricValidation)

Set the skipMetricValidation property: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.

Parameters:

skipMetricValidation - the skipMetricValidation value to set.

Returns:

the MultiMetricCriteria object itself.

withTimeAggregation

public MultiMetricCriteria withTimeAggregation(AggregationTypeEnum timeAggregation)

Set the timeAggregation property: the criteria time aggregation types.

Parameters:

timeAggregation - the timeAggregation value to set.

Returns:

the MultiMetricCriteria object itself.

Applies to