MetricDefinition Class
- java.
lang. Object - com.
azure. monitor. query. models. MetricDefinition
- com.
public final class MetricDefinition
Metric definition class specifies the metadata for a metric.
Constructor Summary
Constructor | Description | |
---|---|---|
MetricDefinition() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getCategory()
Returns the custom category name for this metric. |
String |
getDescription()
Returns the detailed description of this metric. |
List<String> |
getDimensions()
Returns the names of all the dimensions available for this metric. |
String |
getId()
The resource identifier of the metric definition. |
List<Metric |
getMetricAvailabilities()
Returns the collection of what aggregation intervals are available to be queried. |
Metric |
getMetricClass()
Returns the class of the metric. |
String |
getName()
Returns the name of the metric, |
String |
getNamespace()
Returns the namespace the metric belongs to. |
Aggregation |
getPrimaryAggregationType()
Returns the primary aggregation type value defining how to use the values for display. |
String |
getResourceId()
Returns the resource identifier of the resource that emitted the metric. |
List<Aggregation |
getSupportedAggregationTypes()
Returns the collection of what aggregation types are supported. |
Metric |
getUnit()
Returns the unit of the metric. |
Boolean |
isDimensionRequired()
Returns a flag to indicate whether the dimension is required. |
Methods inherited from java.lang.Object
Constructor Details
MetricDefinition
public MetricDefinition()
Method Details
getCategory
public String getCategory()
Returns the custom category name for this metric.
Returns:
getDescription
public String getDescription()
Returns the detailed description of this metric.
Returns:
getDimensions
public List
Returns the names of all the dimensions available for this metric.
Returns:
getId
public String getId()
The resource identifier of the metric definition.
Returns:
getMetricAvailabilities
public List
Returns the collection of what aggregation intervals are available to be queried.
Returns:
getMetricClass
public MetricClass getMetricClass()
Returns the class of the metric.
Returns:
getName
public String getName()
Returns the name of the metric,
Returns:
getNamespace
public String getNamespace()
Returns the namespace the metric belongs to.
Returns:
getPrimaryAggregationType
public AggregationType getPrimaryAggregationType()
Returns the primary aggregation type value defining how to use the values for display.
Returns:
getResourceId
public String getResourceId()
Returns the resource identifier of the resource that emitted the metric.
Returns:
getSupportedAggregationTypes
public List
Returns the collection of what aggregation types are supported.
Returns:
getUnit
public MetricUnit getUnit()
Returns the unit of the metric.
Returns:
isDimensionRequired
public Boolean isDimensionRequired()
Returns a flag to indicate whether the dimension is required.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for