Class MultiMetricCriteria
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.MultiMetricCriteria
-
- Direct Known Subclasses:
DynamicMetricCriteria,MetricCriteria
public class MultiMetricCriteria extends Object
The types of conditions for a multi resource alert.
-
-
Constructor Summary
Constructors Constructor Description MultiMetricCriteria()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: The types of conditions for a multi resource alert.List<MetricDimension>dimensions()Get the dimensions property: List of dimension conditions.StringmetricName()Get the metricName property: Name of the metric.StringmetricNamespace()Get the metricNamespace property: Namespace of the metric.Stringname()Get the name property: Name of the criteria.BooleanskipMetricValidation()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.AggregationTypeEnumtimeAggregation()Get the timeAggregation property: the criteria time aggregation types.voidvalidate()Validates the instance.MultiMetricCriteriawithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: The types of conditions for a multi resource alert.MultiMetricCriteriawithDimensions(List<MetricDimension> dimensions)Set the dimensions property: List of dimension conditions.MultiMetricCriteriawithMetricName(String metricName)Set the metricName property: Name of the metric.MultiMetricCriteriawithMetricNamespace(String metricNamespace)Set the metricNamespace property: Namespace of the metric.MultiMetricCriteriawithName(String name)Set the name property: Name of the criteria.MultiMetricCriteriawithSkipMetricValidation(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.MultiMetricCriteriawithTimeAggregation(AggregationTypeEnum timeAggregation)Set the timeAggregation property: the criteria time aggregation types.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the criteria.- Returns:
- the name value.
-
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.
-
metricName
public String metricName()
Get the metricName property: Name of the metric.- Returns:
- the metricName value.
-
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.
-
metricNamespace
public String metricNamespace()
Get the metricNamespace property: Namespace of the metric.- Returns:
- the metricNamespace value.
-
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.
-
timeAggregation
public AggregationTypeEnum timeAggregation()
Get the timeAggregation property: the criteria time aggregation types.- Returns:
- the timeAggregation value.
-
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.
-
dimensions
public List<MetricDimension> dimensions()
Get the dimensions property: List of dimension conditions.- Returns:
- the dimensions value.
-
withDimensions
public MultiMetricCriteria withDimensions(List<MetricDimension> dimensions)
Set the dimensions property: List of dimension conditions.- Parameters:
dimensions- the dimensions value to set.- Returns:
- the MultiMetricCriteria object itself.
-
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.
-
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.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: The types of conditions for a multi resource alert.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MultiMetricCriteria withAdditionalProperties(Map<String,Object> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-