Package com.azure.monitor.query.models
Class MetricDefinition
java.lang.Object
com.azure.monitor.query.models.MetricDefinition
Metric definition class specifies the metadata for a metric.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the custom category name for this metric.Returns the detailed description of this metric.Returns the names of all the dimensions available for this metric.getId()
The resource identifier of the metric definition.Returns the collection of what aggregation intervals are available to be queried.Returns the class of the metric.getName()
Returns the name of the metric,Returns the namespace the metric belongs to.Returns the primary aggregation type value defining how to use the values for display.Returns the resource identifier of the resource that emitted the metric.Returns the collection of what aggregation types are supported.getUnit()
Returns the unit of the metric.Returns a flag to indicate whether the dimension is required.
-
Constructor Details
-
MetricDefinition
public MetricDefinition()
-
-
Method Details
-
isDimensionRequired
Returns a flag to indicate whether the dimension is required.- Returns:
- Flag to indicate whether the dimension is required.
-
getResourceId
Returns the resource identifier of the resource that emitted the metric.- Returns:
- the resource identifier of the resource that emitted the metric.
-
getNamespace
Returns the namespace the metric belongs to.- Returns:
- the namespace the metric belongs to.
-
getName
Returns the name of the metric,- Returns:
- the name of the metric,
-
getDescription
Returns the detailed description of this metric.- Returns:
- detailed description of this metric.
-
getCategory
Returns the custom category name for this metric.- Returns:
- custom category name for this metric.
-
getMetricClass
Returns the class of the metric.- Returns:
- the class of the metric.
-
getUnit
Returns the unit of the metric.- Returns:
- the unit of the metric.
-
getPrimaryAggregationType
Returns the primary aggregation type value defining how to use the values for display.- Returns:
- the primary aggregation type value defining how to use the values for display.
-
getSupportedAggregationTypes
Returns the collection of what aggregation types are supported.- Returns:
- the collection of what aggregation types are supported.
-
getMetricAvailabilities
Returns the collection of what aggregation intervals are available to be queried.- Returns:
- the collection of what aggregation intervals are available to be queried.
-
getId
The resource identifier of the metric definition.- Returns:
- the resource identifier of the metric definition.
-
getDimensions
Returns the names of all the dimensions available for this metric.- Returns:
- the names of all the dimensions available for this metric.
-