public final class MetricSpecification extends Object
| Constructor and Description |
|---|
MetricSpecification() |
| Modifier and Type | Method and Description |
|---|---|
String |
aggregationType()
Get the aggregationType property: The metric aggregation type.
|
List<DimensionProperties> |
dimensions()
Get the dimensions property: The dimensions of metric.
|
String |
displayDescription()
Get the displayDescription property: Display description of Metric specification.
|
String |
displayName()
Get the displayName property: Display name of Metric specification.
|
Boolean |
fillGapWithZero()
Get the fillGapWithZero property: Property to specify whether to fill gap with zero.
|
String |
internalMetricName()
Get the internalMetricName property: The internal metric name.
|
String |
lockAggregationType()
Get the lockAggregationType property: The metric lock aggregation type.
|
String |
name()
Get the name property: Name of metric specification.
|
List<String> |
supportedAggregationTypes()
Get the supportedAggregationTypes property: The supported aggregation types for the metrics.
|
List<String> |
supportedTimeGrainTypes()
Get the supportedTimeGrainTypes property: The supported time grain types for the metrics.
|
String |
unit()
Get the unit property: The metric unit.
|
void |
validate()
Validates the instance.
|
MetricSpecification |
withAggregationType(String aggregationType)
Set the aggregationType property: The metric aggregation type.
|
MetricSpecification |
withDimensions(List<DimensionProperties> dimensions)
Set the dimensions property: The dimensions of metric.
|
MetricSpecification |
withDisplayDescription(String displayDescription)
Set the displayDescription property: Display description of Metric specification.
|
MetricSpecification |
withDisplayName(String displayName)
Set the displayName property: Display name of Metric specification.
|
MetricSpecification |
withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: Property to specify whether to fill gap with zero.
|
MetricSpecification |
withInternalMetricName(String internalMetricName)
Set the internalMetricName property: The internal metric name.
|
MetricSpecification |
withLockAggregationType(String lockAggregationType)
Set the lockAggregationType property: The metric lock aggregation type.
|
MetricSpecification |
withName(String name)
Set the name property: Name of metric specification.
|
MetricSpecification |
withSupportedAggregationTypes(List<String> supportedAggregationTypes)
Set the supportedAggregationTypes property: The supported aggregation types for the metrics.
|
MetricSpecification |
withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)
Set the supportedTimeGrainTypes property: The supported time grain types for the metrics.
|
MetricSpecification |
withUnit(String unit)
Set the unit property: The metric unit.
|
public String name()
public MetricSpecification withName(String name)
name - the name value to set.public String displayName()
public MetricSpecification withDisplayName(String displayName)
displayName - the displayName value to set.public String displayDescription()
public MetricSpecification withDisplayDescription(String displayDescription)
displayDescription - the displayDescription value to set.public String unit()
public MetricSpecification withUnit(String unit)
unit - the unit value to set.public String aggregationType()
public MetricSpecification withAggregationType(String aggregationType)
aggregationType - the aggregationType value to set.public List<String> supportedAggregationTypes()
public MetricSpecification withSupportedAggregationTypes(List<String> supportedAggregationTypes)
supportedAggregationTypes - the supportedAggregationTypes value to set.public List<String> supportedTimeGrainTypes()
public MetricSpecification withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)
supportedTimeGrainTypes - the supportedTimeGrainTypes value to set.public String lockAggregationType()
public MetricSpecification withLockAggregationType(String lockAggregationType)
lockAggregationType - the lockAggregationType value to set.public List<DimensionProperties> dimensions()
public MetricSpecification withDimensions(List<DimensionProperties> dimensions)
dimensions - the dimensions value to set.public Boolean fillGapWithZero()
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
fillGapWithZero - the fillGapWithZero value to set.public String internalMetricName()
public MetricSpecification withInternalMetricName(String internalMetricName)
internalMetricName - the internalMetricName value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.