Class Criteria
java.lang.Object
com.azure.resourcemanager.monitor.models.Criteria
Specifies the criteria for converting log to metric.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dimensions property: List of Dimensions for creating metric.Get the metricName property: Name of the metric.voidvalidate()Validates the instance.withDimensions(List<Dimension> dimensions) Set the dimensions property: List of Dimensions for creating metric.withMetricName(String metricName) Set the metricName property: Name of the metric.
-
Constructor Details
-
Criteria
public Criteria()
-
-
Method Details
-
metricName
Get the metricName property: Name of the metric.- Returns:
- the metricName value.
-
withMetricName
Set the metricName property: Name of the metric.- Parameters:
metricName- the metricName value to set.- Returns:
- the Criteria object itself.
-
dimensions
Get the dimensions property: List of Dimensions for creating metric.- Returns:
- the dimensions value.
-
withDimensions
Set the dimensions property: List of Dimensions for creating metric.- Parameters:
dimensions- the dimensions value to set.- Returns:
- the Criteria object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-