Class MetricDefinitionInner
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.fluent.models.MetricDefinitionInner
-
public final class MetricDefinitionInner extends Object
The definition of a metric.
-
-
Constructor Summary
Constructors Constructor Description MetricDefinitionInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MetricAvailability>metricAvailabilities()Get the metricAvailabilities property: The list of metric availabilities for the account.MetricNamename()Get the name property: The name information for the metric.PrimaryAggregationTypeprimaryAggregationType()Get the primaryAggregationType property: The primary aggregation type of the metric.StringresourceUri()Get the resourceUri property: The resource uri of the database.UnitTypeunit()Get the unit property: The unit of the metric.voidvalidate()Validates the instance.
-
-
-
Method Detail
-
metricAvailabilities
public List<MetricAvailability> metricAvailabilities()
Get the metricAvailabilities property: The list of metric availabilities for the account.- Returns:
- the metricAvailabilities value.
-
primaryAggregationType
public PrimaryAggregationType primaryAggregationType()
Get the primaryAggregationType property: The primary aggregation type of the metric.- Returns:
- the primaryAggregationType value.
-
unit
public UnitType unit()
Get the unit property: The unit of the metric.- Returns:
- the unit value.
-
resourceUri
public String resourceUri()
Get the resourceUri property: The resource uri of the database.- Returns:
- the resourceUri value.
-
name
public MetricName name()
Get the name property: The name information for the metric.- Returns:
- the name value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-