MetricSpecification Class

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

Implements

public final class MetricSpecification
implements JsonSerializable<MetricSpecification>

Description of metrics specification.

Method Summary

Modifier and Type Method and Description
String aggregationType()

Get the aggregationType property: The aggregation type.

List<Availability> availabilities()

Get the availabilities property: List of availability.

List<Dimension> dimensions()

Get the dimensions property: List of dimensions.

String displayDescription()

Get the displayDescription property: The description of the metric.

String displayName()

Get the displayName property: The display name of the metric.

Boolean enableRegionalMdmAccount()

Get the enableRegionalMdmAccount property: Whether regional MDM account enabled.

Boolean fillGapWithZero()

Get the fillGapWithZero property: Whether gaps would be filled with zeros.

static MetricSpecification fromJson(JsonReader jsonReader)

Reads an instance of MetricSpecification from the JsonReader.

Boolean isInternal()

Get the isInternal property: Whether the metric is internal.

String metricFilterPattern()

Get the metricFilterPattern property: Pattern for the filter of the metric.

String name()

Get the name property: The name of the metric.

String resourceIdDimensionNameOverride()

Get the resourceIdDimensionNameOverride property: The resource Id dimension name override.

String sourceMdmAccount()

Get the sourceMdmAccount property: The source MDM account.

String sourceMdmNamespace()

Get the sourceMdmNamespace property: The source MDM namespace.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: Units the metric to be displayed in.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

aggregationType

public String aggregationType()

Get the aggregationType property: The aggregation type.

Returns:

the aggregationType value.

availabilities

public List<Availability> availabilities()

Get the availabilities property: List of availability.

Returns:

the availabilities value.

dimensions

public List<Dimension> dimensions()

Get the dimensions property: List of dimensions.

Returns:

the dimensions value.

displayDescription

public String displayDescription()

Get the displayDescription property: The description of the metric.

Returns:

the displayDescription value.

displayName

public String displayName()

Get the displayName property: The display name of the metric.

Returns:

the displayName value.

enableRegionalMdmAccount

public Boolean enableRegionalMdmAccount()

Get the enableRegionalMdmAccount property: Whether regional MDM account enabled.

Returns:

the enableRegionalMdmAccount value.

fillGapWithZero

public Boolean fillGapWithZero()

Get the fillGapWithZero property: Whether gaps would be filled with zeros.

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: Whether the metric is internal.

Returns:

the isInternal value.

metricFilterPattern

public String metricFilterPattern()

Get the metricFilterPattern property: Pattern for the filter of the metric.

Returns:

the metricFilterPattern value.

name

public String name()

Get the name property: The name of the metric.

Returns:

the name value.

resourceIdDimensionNameOverride

public String resourceIdDimensionNameOverride()

Get the resourceIdDimensionNameOverride property: The resource Id dimension name override.

Returns:

the resourceIdDimensionNameOverride value.

sourceMdmAccount

public String sourceMdmAccount()

Get the sourceMdmAccount property: The source MDM account.

Returns:

the sourceMdmAccount value.

sourceMdmNamespace

public String sourceMdmNamespace()

Get the sourceMdmNamespace property: The source MDM namespace.

Returns:

the sourceMdmNamespace value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: Units the metric to be displayed in.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to