MetricSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.MetricSpecification

Implements

public final class MetricSpecification
implements JsonSerializable<MetricSpecification>

Metric specification of operation.

Method Summary

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.

static MetricSpecification fromJson(JsonReader jsonReader)

Reads an instance of MetricSpecification from the JsonReader.

String name()

Get the name property: Name of metric specification.

String resourceIdDimensionNameOverride()

Get the resourceIdDimensionNameOverride property: Account Resource Id.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: Unit could be Bytes or Count.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

aggregationType

public String aggregationType()

Get the aggregationType property: Aggregation type could be Average.

Returns:

the aggregationType value.

category

public String category()

Get the category property: The category this metric specification belong to, could be Capacity.

Returns:

the category value.

dimensions

public List<Dimension> dimensions()

Get the dimensions property: Dimensions of blobs, including blob type and access tier.

Returns:

the dimensions value.

displayDescription

public String displayDescription()

Get the displayDescription property: Display description of metric specification.

Returns:

the displayDescription value.

displayName

public String displayName()

Get the displayName property: Display name of metric specification.

Returns:

the displayName value.

fillGapWithZero

public Boolean fillGapWithZero()

Get the fillGapWithZero property: The property to decide fill gap with zero or not.

Returns:

the fillGapWithZero value.

fromJson

public static MetricSpecification fromJson(JsonReader jsonReader)

Reads an instance of MetricSpecification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MetricSpecification if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MetricSpecification.

name

public String name()

Get the name property: Name of metric specification.

Returns:

the name value.

resourceIdDimensionNameOverride

public String resourceIdDimensionNameOverride()

Get the resourceIdDimensionNameOverride property: Account Resource Id.

Returns:

the resourceIdDimensionNameOverride value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: Unit could be Bytes or Count.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to