MultiMetricCriteria Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. MultiMetricCriteria
- com.
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 Multi |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
Criterion |
criterionType()
Get the criterion |
List<Metric |
dimensions()
Get the dimensions property: List of dimension conditions. |
static
Multi |
fromJson(JsonReader jsonReader)
Reads an instance of Multi |
String |
metricName()
Get the metric |
String |
metricNamespace()
Get the metric |
String |
name()
Get the name property: Name of the criteria. |
Boolean |
skipMetricValidation()
Get the skip |
Aggregation |
timeAggregation()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Multi |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Multi |
withDimensions(List<MetricDimension> dimensions)
Set the dimensions property: List of dimension conditions. |
Multi |
withMetricName(String metricName)
Set the metric |
Multi |
withMetricNamespace(String metricNamespace)
Set the metric |
Multi |
withName(String name)
Set the name property: Name of the criteria. |
Multi |
withSkipMetricValidation(Boolean skipMetricValidation)
Set the skip |
Multi |
withTimeAggregation(AggregationTypeEnum timeAggregation)
Set the time |
Methods inherited from java.lang.Object
Constructor Details
MultiMetricCriteria
public MultiMetricCriteria()
Creates an instance of MultiMetricCriteria class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: The types of conditions for a multi resource alert.
Returns:
criterionType
public CriterionType criterionType()
Get the criterionType property: Specifies the type of threshold criteria.
Returns:
dimensions
public List
Get the dimensions property: List of dimension conditions.
Returns:
fromJson
public static MultiMetricCriteria fromJson(JsonReader jsonReader)
Reads an instance of MultiMetricCriteria from the JsonReader.
Parameters:
Returns:
Throws:
metricName
public String metricName()
Get the metricName property: Name of the metric.
Returns:
metricNamespace
public String metricNamespace()
Get the metricNamespace property: Namespace of the metric.
Returns:
name
public String name()
Get the name property: Name of the criteria.
Returns:
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:
timeAggregation
public AggregationTypeEnum timeAggregation()
Get the timeAggregation property: the criteria time aggregation types.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAdditionalProperties
public MultiMetricCriteria withAdditionalProperties(Map
Set the additionalProperties property: The types of conditions for a multi resource alert.
Parameters:
Returns:
withDimensions
public MultiMetricCriteria withDimensions(List
Set the dimensions property: List of dimension conditions.
Parameters:
Returns:
withMetricName
public MultiMetricCriteria withMetricName(String metricName)
Set the metricName property: Name of the metric.
Parameters:
Returns:
withMetricNamespace
public MultiMetricCriteria withMetricNamespace(String metricNamespace)
Set the metricNamespace property: Namespace of the metric.
Parameters:
Returns:
withName
public MultiMetricCriteria withName(String name)
Set the name property: Name of the criteria.
Parameters:
Returns:
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:
Returns:
withTimeAggregation
public MultiMetricCriteria withTimeAggregation(AggregationTypeEnum timeAggregation)
Set the timeAggregation property: the criteria time aggregation types.
Parameters:
Returns:
Applies to
Azure SDK for Java