OperationResourceMetricSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.storagesync.models.OperationResourceMetricSpecification

Implements

public final class OperationResourceMetricSpecification
implements JsonSerializable<OperationResourceMetricSpecification>

Operation Display Resource object.

Method Summary

Modifier and Type Method and Description
String aggregationType()

Get the aggregationType property: Aggregation type for the metric.

List<OperationResourceMetricSpecificationDimension> dimensions()

Get the dimensions property: Dimensions for the metric specification.

String displayDescription()

Get the displayDescription property: Display description for the metric.

String displayName()

Get the displayName property: Display name for the metric.

Boolean fillGapWithZero()

Get the fillGapWithZero property: Fill gaps in the metric with zero.

static OperationResourceMetricSpecification fromJson(JsonReader jsonReader)

Reads an instance of OperationResourceMetricSpecification from the JsonReader.

String lockAggregationType()

Get the lockAggregationType property: Lock Aggregation type for the metric.

String name()

Get the name property: Name of the metric.

List<String> supportedAggregationTypes()

Get the supportedAggregationTypes property: Supported aggregation types for the metric.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: Unit for the metric.

Methods inherited from java.lang.Object

Method Details

aggregationType

public String aggregationType()

Get the aggregationType property: Aggregation type for the metric.

Returns:

the aggregationType value.

dimensions

public List<OperationResourceMetricSpecificationDimension> dimensions()

Get the dimensions property: Dimensions for the metric specification.

Returns:

the dimensions value.

displayDescription

public String displayDescription()

Get the displayDescription property: Display description for the metric.

Returns:

the displayDescription value.

displayName

public String displayName()

Get the displayName property: Display name for the metric.

Returns:

the displayName value.

fillGapWithZero

public Boolean fillGapWithZero()

Get the fillGapWithZero property: Fill gaps in the metric with zero.

Returns:

the fillGapWithZero value.

fromJson

public static OperationResourceMetricSpecification fromJson(JsonReader jsonReader)

Reads an instance of OperationResourceMetricSpecification from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationResourceMetricSpecification 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 OperationResourceMetricSpecification.

lockAggregationType

public String lockAggregationType()

Get the lockAggregationType property: Lock Aggregation type for the metric.

Returns:

the lockAggregationType value.

name

public String name()

Get the name property: Name of the metric.

Returns:

the name value.

supportedAggregationTypes

public List<String> supportedAggregationTypes()

Get the supportedAggregationTypes property: Supported aggregation types for the metric.

Returns:

the supportedAggregationTypes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: Unit for the metric.

Returns:

the unit value.

Applies to