MetricSpecification Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. MetricSpecification
- com.
Implements
public final class MetricSpecification
implements JsonSerializable<MetricSpecification>
Metric specification of operation.
Constructor Summary
Constructor | Description |
---|---|
MetricSpecification() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
aggregationType()
Get the aggregation |
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 display |
String |
displayName()
Get the display |
Boolean |
fillGapWithZero()
Get the fill |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
String |
name()
Get the name property: Name of metric specification. |
String |
resourceIdDimensionNameOverride()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
String |
unit()
Get the unit property: Unit could be Bytes or Count. |
void |
validate()
Validates the instance. |
Metric |
withAggregationType(String aggregationType)
Set the aggregation |
Metric |
withCategory(String category)
Set the category property: The category this metric specification belong to, could be Capacity. |
Metric |
withDimensions(List<Dimension> dimensions)
Set the dimensions property: Dimensions of blobs, including blob type and access tier. |
Metric |
withDisplayDescription(String displayDescription)
Set the display |
Metric |
withDisplayName(String displayName)
Set the display |
Metric |
withFillGapWithZero(Boolean fillGapWithZero)
Set the fill |
Metric |
withName(String name)
Set the name property: Name of metric specification. |
Metric |
withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
Set the resource |
Metric |
withUnit(String unit)
Set the unit property: Unit could be Bytes or Count. |
Methods inherited from java.lang.Object
Constructor Details
MetricSpecification
public MetricSpecification()
Creates an instance of MetricSpecification class.
Method Details
aggregationType
public String aggregationType()
Get the aggregationType property: Aggregation type could be Average.
Returns:
category
public String category()
Get the category property: The category this metric specification belong to, could be Capacity.
Returns:
dimensions
public List
Get the dimensions property: Dimensions of blobs, including blob type and access tier.
Returns:
displayDescription
public String displayDescription()
Get the displayDescription property: Display description of metric specification.
Returns:
displayName
public String displayName()
Get the displayName property: Display name of metric specification.
Returns:
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: The property to decide fill gap with zero or not.
Returns:
fromJson
public static MetricSpecification fromJson(JsonReader jsonReader)
Reads an instance of MetricSpecification from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of metric specification.
Returns:
resourceIdDimensionNameOverride
public String resourceIdDimensionNameOverride()
Get the resourceIdDimensionNameOverride property: Account Resource Id.
Returns:
toJson
unit
public String unit()
Get the unit property: Unit could be Bytes or Count.
Returns:
validate
public void validate()
Validates the instance.
withAggregationType
public MetricSpecification withAggregationType(String aggregationType)
Set the aggregationType property: Aggregation type could be Average.
Parameters:
Returns:
withCategory
public MetricSpecification withCategory(String category)
Set the category property: The category this metric specification belong to, could be Capacity.
Parameters:
Returns:
withDimensions
public MetricSpecification withDimensions(List
Set the dimensions property: Dimensions of blobs, including blob type and access tier.
Parameters:
Returns:
withDisplayDescription
public MetricSpecification withDisplayDescription(String displayDescription)
Set the displayDescription property: Display description of metric specification.
Parameters:
Returns:
withDisplayName
public MetricSpecification withDisplayName(String displayName)
Set the displayName property: Display name of metric specification.
Parameters:
Returns:
withFillGapWithZero
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: The property to decide fill gap with zero or not.
Parameters:
Returns:
withName
public MetricSpecification withName(String name)
Set the name property: Name of metric specification.
Parameters:
Returns:
withResourceIdDimensionNameOverride
public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
Set the resourceIdDimensionNameOverride property: Account Resource Id.
Parameters:
Returns:
withUnit
public MetricSpecification withUnit(String unit)
Set the unit property: Unit could be Bytes or Count.
Parameters:
Returns:
Applies to
Azure SDK for Java