Share via


MetricSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.keyvault.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: 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.

static MetricSpecification fromJson(JsonReader jsonReader)

Reads an instance of MetricSpecification from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: The metric unit.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

aggregationType

public String aggregationType()

Get the aggregationType property: The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'.

Returns:

the aggregationType value.

dimensions

public List<DimensionProperties> dimensions()

Get the dimensions property: The dimensions of metric.

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: Property to specify whether to fill gap with zero.

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.

internalMetricName

public String internalMetricName()

Get the internalMetricName property: The internal metric name.

Returns:

the internalMetricName value.

lockAggregationType

public String lockAggregationType()

Get the lockAggregationType property: The metric lock aggregation type.

Returns:

the lockAggregationType value.

name

public String name()

Get the name property: Name of metric specification.

Returns:

the name value.

supportedAggregationTypes

public List<String> supportedAggregationTypes()

Get the supportedAggregationTypes property: The supported aggregation types for the metrics.

Returns:

the supportedAggregationTypes value.

supportedTimeGrainTypes

public List<String> supportedTimeGrainTypes()

Get the supportedTimeGrainTypes property: The supported time grain types for the metrics.

Returns:

the supportedTimeGrainTypes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: The metric unit. Possible values include: 'Bytes', 'Count', 'Milliseconds'.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to