Class Criteria
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.Criteria
-
public final class Criteria extends Object
Specifies the criteria for converting log to metric.
-
-
Constructor Summary
Constructors Constructor Description Criteria()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Dimension>dimensions()Get the dimensions property: List of Dimensions for creating metric.StringmetricName()Get the metricName property: Name of the metric.voidvalidate()Validates the instance.CriteriawithDimensions(List<Dimension> dimensions)Set the dimensions property: List of Dimensions for creating metric.CriteriawithMetricName(String metricName)Set the metricName property: Name of the metric.
-
-
-
Method Detail
-
metricName
public String metricName()
Get the metricName property: Name of the metric.- Returns:
- the metricName value.
-
withMetricName
public Criteria withMetricName(String metricName)
Set the metricName property: Name of the metric.- Parameters:
metricName- the metricName value to set.- Returns:
- the Criteria object itself.
-
dimensions
public List<Dimension> dimensions()
Get the dimensions property: List of Dimensions for creating metric.- Returns:
- the dimensions value.
-
withDimensions
public Criteria withDimensions(List<Dimension> dimensions)
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.
-
-