Partager via


MetricSpecification Class

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

Implements

public final class MetricSpecification
implements JsonSerializable<MetricSpecification>

Metric specification of operation.

Constructor Summary

Constructor Description
MetricSpecification()

Creates an instance of MetricSpecification class.

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.

MetricSpecification withAggregationType(String aggregationType)

Set the aggregationType property: The metric aggregation type.

MetricSpecification withDimensions(List<DimensionProperties> dimensions)

Set the dimensions property: The dimensions of metric.

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

MetricSpecification withInternalMetricName(String internalMetricName)

Set the internalMetricName property: The internal metric name.

MetricSpecification withLockAggregationType(String lockAggregationType)

Set the lockAggregationType property: The metric lock aggregation type.

MetricSpecification withName(String name)

Set the name property: Name of metric specification.

MetricSpecification withSupportedAggregationTypes(List<String> supportedAggregationTypes)

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

MetricSpecification withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)

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

MetricSpecification withUnit(String unit)

Set the unit property: The metric unit.

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: The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'.

Returns:

the aggregationType value.

dimensions

public List 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 supportedAggregationTypes()

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

Returns:

the supportedAggregationTypes value.

supportedTimeGrainTypes

public List 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.

withAggregationType

public MetricSpecification withAggregationType(String aggregationType)

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

Parameters:

aggregationType - the aggregationType value to set.

Returns:

the MetricSpecification object itself.

withDimensions

public MetricSpecification withDimensions(List dimensions)

Set the dimensions property: The dimensions of metric.

Parameters:

dimensions - the dimensions value to set.

Returns:

the MetricSpecification object itself.

withDisplayDescription

public MetricSpecification withDisplayDescription(String displayDescription)

Set the displayDescription property: Display description of metric specification.

Parameters:

displayDescription - the displayDescription value to set.

Returns:

the MetricSpecification object itself.

withDisplayName

public MetricSpecification withDisplayName(String displayName)

Set the displayName property: Display name of metric specification.

Parameters:

displayName - the displayName value to set.

Returns:

the MetricSpecification object itself.

withFillGapWithZero

public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)

Set the fillGapWithZero property: Property to specify whether to fill gap with zero.

Parameters:

fillGapWithZero - the fillGapWithZero value to set.

Returns:

the MetricSpecification object itself.

withInternalMetricName

public MetricSpecification withInternalMetricName(String internalMetricName)

Set the internalMetricName property: The internal metric name.

Parameters:

internalMetricName - the internalMetricName value to set.

Returns:

the MetricSpecification object itself.

withLockAggregationType

public MetricSpecification withLockAggregationType(String lockAggregationType)

Set the lockAggregationType property: The metric lock aggregation type.

Parameters:

lockAggregationType - the lockAggregationType value to set.

Returns:

the MetricSpecification object itself.

withName

public MetricSpecification withName(String name)

Set the name property: Name of metric specification.

Parameters:

name - the name value to set.

Returns:

the MetricSpecification object itself.

withSupportedAggregationTypes

public MetricSpecification withSupportedAggregationTypes(List supportedAggregationTypes)

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

Parameters:

supportedAggregationTypes - the supportedAggregationTypes value to set.

Returns:

the MetricSpecification object itself.

withSupportedTimeGrainTypes

public MetricSpecification withSupportedTimeGrainTypes(List supportedTimeGrainTypes)

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

Parameters:

supportedTimeGrainTypes - the supportedTimeGrainTypes value to set.

Returns:

the MetricSpecification object itself.

withUnit

public MetricSpecification withUnit(String unit)

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

Parameters:

unit - the unit value to set.

Returns:

the MetricSpecification object itself.

Applies to