public class MultiMetricCriteria extends Object
| Constructor and Description |
|---|
MultiMetricCriteria() |
| Modifier and Type | Method and 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.
|
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.
|
AggregationType |
timeAggregation()
Get the timeAggregation property: the criteria time aggregation types.
|
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(AggregationType timeAggregation)
Set the timeAggregation property: the criteria time aggregation types.
|
public String name()
public MultiMetricCriteria withName(String name)
name - the name value to set.public String metricName()
public MultiMetricCriteria withMetricName(String metricName)
metricName - the metricName value to set.public String metricNamespace()
public MultiMetricCriteria withMetricNamespace(String metricNamespace)
metricNamespace - the metricNamespace value to set.public AggregationType timeAggregation()
public MultiMetricCriteria withTimeAggregation(AggregationType timeAggregation)
timeAggregation - the timeAggregation value to set.public List<MetricDimension> dimensions()
public MultiMetricCriteria withDimensions(List<MetricDimension> dimensions)
dimensions - the dimensions value to set.public Boolean skipMetricValidation()
public MultiMetricCriteria withSkipMetricValidation(Boolean skipMetricValidation)
skipMetricValidation - the skipMetricValidation value to set.public Map<String,Object> additionalProperties()
public MultiMetricCriteria withAdditionalProperties(Map<String,Object> additionalProperties)
additionalProperties - the additionalProperties value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.