public final class MetricSpecification extends Object
| Constructor and Description |
|---|
MetricSpecification() |
| Modifier and Type | Method and Description |
|---|---|
String |
aggregationType()
Get the aggregationType property: Aggregation type could be Average.
|
String |
category()
Get the category property: The category this metric specification belong to, could be Capacity.
|
List<Dimension> |
dimensions()
Get the dimensions property: Dimensions of blobs, including blob type and access tier.
|
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: The property to decide fill gap with zero or not.
|
String |
name()
Get the name property: Name of metric specification.
|
String |
resourceIdDimensionNameOverride()
Get the resourceIdDimensionNameOverride property: Account Resource Id.
|
String |
unit()
Get the unit property: Unit could be Bytes or Count.
|
void |
validate()
Validates the instance.
|
MetricSpecification |
withAggregationType(String aggregationType)
Set the aggregationType property: Aggregation type could be Average.
|
MetricSpecification |
withCategory(String category)
Set the category property: The category this metric specification belong to, could be Capacity.
|
MetricSpecification |
withDimensions(List<Dimension> dimensions)
Set the dimensions property: Dimensions of blobs, including blob type and access tier.
|
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: The property to decide fill gap with zero or not.
|
MetricSpecification |
withName(String name)
Set the name property: Name of metric specification.
|
MetricSpecification |
withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
Set the resourceIdDimensionNameOverride property: Account Resource Id.
|
MetricSpecification |
withUnit(String unit)
Set the unit property: Unit could be Bytes or Count.
|
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 List<Dimension> dimensions()
public MetricSpecification withDimensions(List<Dimension> dimensions)
dimensions - the dimensions value to set.public String aggregationType()
public MetricSpecification withAggregationType(String aggregationType)
aggregationType - the aggregationType value to set.public Boolean fillGapWithZero()
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
fillGapWithZero - the fillGapWithZero value to set.public String category()
public MetricSpecification withCategory(String category)
category - the category value to set.public String resourceIdDimensionNameOverride()
public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
resourceIdDimensionNameOverride - the resourceIdDimensionNameOverride value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.