public final class MetricDefinitionInner extends Object
| Constructor and Description |
|---|
MetricDefinitionInner() |
| Modifier and Type | Method and Description |
|---|---|
List<LocalizableStringInner> |
dimensions()
Get the dimensions property: the name and the display name of the dimension, i.e.
|
String |
id()
Get the id property: the resource identifier of the metric definition.
|
Boolean |
isDimensionRequired()
Get the isDimensionRequired property: Flag to indicate whether the dimension is required.
|
List<MetricAvailability> |
metricAvailabilities()
Get the metricAvailabilities property: the collection of what aggregation intervals are available to be queried.
|
LocalizableStringInner |
name()
Get the name property: the name and the display name of the metric, i.e.
|
String |
namespace()
Get the namespace property: the namespace the metric belongs to.
|
AggregationType |
primaryAggregationType()
Get the primaryAggregationType property: the primary aggregation type value defining how to use the values for
display.
|
String |
resourceId()
Get the resourceId property: the resource identifier of the resource that emitted the metric.
|
List<AggregationType> |
supportedAggregationTypes()
Get the supportedAggregationTypes property: the collection of what aggregation types are supported.
|
Unit |
unit()
Get the unit property: the unit of the metric.
|
void |
validate()
Validates the instance.
|
MetricDefinitionInner |
withDimensions(List<LocalizableStringInner> dimensions)
Set the dimensions property: the name and the display name of the dimension, i.e.
|
MetricDefinitionInner |
withId(String id)
Set the id property: the resource identifier of the metric definition.
|
MetricDefinitionInner |
withIsDimensionRequired(Boolean isDimensionRequired)
Set the isDimensionRequired property: Flag to indicate whether the dimension is required.
|
MetricDefinitionInner |
withMetricAvailabilities(List<MetricAvailability> metricAvailabilities)
Set the metricAvailabilities property: the collection of what aggregation intervals are available to be queried.
|
MetricDefinitionInner |
withName(LocalizableStringInner name)
Set the name property: the name and the display name of the metric, i.e.
|
MetricDefinitionInner |
withNamespace(String namespace)
Set the namespace property: the namespace the metric belongs to.
|
MetricDefinitionInner |
withPrimaryAggregationType(AggregationType primaryAggregationType)
Set the primaryAggregationType property: the primary aggregation type value defining how to use the values for
display.
|
MetricDefinitionInner |
withResourceId(String resourceId)
Set the resourceId property: the resource identifier of the resource that emitted the metric.
|
MetricDefinitionInner |
withSupportedAggregationTypes(List<AggregationType> supportedAggregationTypes)
Set the supportedAggregationTypes property: the collection of what aggregation types are supported.
|
MetricDefinitionInner |
withUnit(Unit unit)
Set the unit property: the unit of the metric.
|
public Boolean isDimensionRequired()
public MetricDefinitionInner withIsDimensionRequired(Boolean isDimensionRequired)
isDimensionRequired - the isDimensionRequired value to set.public String resourceId()
public MetricDefinitionInner withResourceId(String resourceId)
resourceId - the resourceId value to set.public String namespace()
public MetricDefinitionInner withNamespace(String namespace)
namespace - the namespace value to set.public LocalizableStringInner name()
public MetricDefinitionInner withName(LocalizableStringInner name)
name - the name value to set.public Unit unit()
public MetricDefinitionInner withUnit(Unit unit)
unit - the unit value to set.public AggregationType primaryAggregationType()
public MetricDefinitionInner withPrimaryAggregationType(AggregationType primaryAggregationType)
primaryAggregationType - the primaryAggregationType value to set.public List<AggregationType> supportedAggregationTypes()
public MetricDefinitionInner withSupportedAggregationTypes(List<AggregationType> supportedAggregationTypes)
supportedAggregationTypes - the supportedAggregationTypes value to set.public List<MetricAvailability> metricAvailabilities()
public MetricDefinitionInner withMetricAvailabilities(List<MetricAvailability> metricAvailabilities)
metricAvailabilities - the metricAvailabilities value to set.public String id()
public MetricDefinitionInner withId(String id)
id - the id value to set.public List<LocalizableStringInner> dimensions()
public MetricDefinitionInner withDimensions(List<LocalizableStringInner> dimensions)
dimensions - the dimensions value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.