MetricSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.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<MetricAvailability> availabilities()

Get the availabilities property: Retention policies of a resource metric.

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.

Boolean isInternal()

Get the isInternal property: Property to specify metric is internal or not.

String metricFilterPattern()

Get the metricFilterPattern property: Pattern to filter based on name.

String name()

Get the name property: Name of metric specification.

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.

availabilities

public List<MetricAvailability> availabilities()

Get the availabilities property: Retention policies of a resource metric.

Returns:

the availabilities 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.

isInternal

public Boolean isInternal()

Get the isInternal property: Property to specify metric is internal or not.

Returns:

the isInternal value.

metricFilterPattern

public String metricFilterPattern()

Get the metricFilterPattern property: Pattern to filter based on name.

Returns:

the metricFilterPattern value.

name

public String name()

Get the name property: Name of metric specification.

Returns:

the name 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