共用方式為


MetricSpecification Class

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

Implements

public final class MetricSpecification
implements JsonSerializable<MetricSpecification>

Description of metrics specification.

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

MetricSpecification withAggregationType(String aggregationType)

Set the aggregationType property: The aggregation type.

MetricSpecification withAvailabilities(List<Availability> availabilities)

Set the availabilities property: List of availability.

MetricSpecification withDimensions(List<Dimension> dimensions)

Set the dimensions property: List of dimensions.

MetricSpecification withDisplayDescription(String displayDescription)

Set the displayDescription property: The description of the metric.

MetricSpecification withDisplayName(String displayName)

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

MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)

Set the enableRegionalMdmAccount property: Whether regional MDM account enabled.

MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)

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

MetricSpecification withIsInternal(Boolean isInternal)

Set the isInternal property: Whether the metric is internal.

MetricSpecification withMetricFilterPattern(String metricFilterPattern)

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

MetricSpecification withName(String name)

Set the name property: The name of the metric.

MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)

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

MetricSpecification withSourceMdmAccount(String sourceMdmAccount)

Set the sourceMdmAccount property: The source MDM account.

MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)

Set the sourceMdmNamespace property: The source MDM namespace.

MetricSpecification withUnit(String unit)

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

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 aggregation type.

Returns:

the aggregationType value.

availabilities

public List availabilities()

Get the availabilities property: List of availability.

Returns:

the availabilities value.

dimensions

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

withAggregationType

public MetricSpecification withAggregationType(String aggregationType)

Set the aggregationType property: The aggregation type.

Parameters:

aggregationType - the aggregationType value to set.

Returns:

the MetricSpecification object itself.

withAvailabilities

public MetricSpecification withAvailabilities(List availabilities)

Set the availabilities property: List of availability.

Parameters:

availabilities - the availabilities value to set.

Returns:

the MetricSpecification object itself.

withDimensions

public MetricSpecification withDimensions(List dimensions)

Set the dimensions property: List of dimensions.

Parameters:

dimensions - the dimensions value to set.

Returns:

the MetricSpecification object itself.

withDisplayDescription

public MetricSpecification withDisplayDescription(String displayDescription)

Set the displayDescription property: The description of the metric.

Parameters:

displayDescription - the displayDescription value to set.

Returns:

the MetricSpecification object itself.

withDisplayName

public MetricSpecification withDisplayName(String displayName)

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

Parameters:

displayName - the displayName value to set.

Returns:

the MetricSpecification object itself.

withEnableRegionalMdmAccount

public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)

Set the enableRegionalMdmAccount property: Whether regional MDM account enabled.

Parameters:

enableRegionalMdmAccount - the enableRegionalMdmAccount value to set.

Returns:

the MetricSpecification object itself.

withFillGapWithZero

public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)

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

Parameters:

fillGapWithZero - the fillGapWithZero value to set.

Returns:

the MetricSpecification object itself.

withIsInternal

public MetricSpecification withIsInternal(Boolean isInternal)

Set the isInternal property: Whether the metric is internal.

Parameters:

isInternal - the isInternal value to set.

Returns:

the MetricSpecification object itself.

withMetricFilterPattern

public MetricSpecification withMetricFilterPattern(String metricFilterPattern)

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

Parameters:

metricFilterPattern - the metricFilterPattern value to set.

Returns:

the MetricSpecification object itself.

withName

public MetricSpecification withName(String name)

Set the name property: The name of the metric.

Parameters:

name - the name value to set.

Returns:

the MetricSpecification object itself.

withResourceIdDimensionNameOverride

public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)

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

Parameters:

resourceIdDimensionNameOverride - the resourceIdDimensionNameOverride value to set.

Returns:

the MetricSpecification object itself.

withSourceMdmAccount

public MetricSpecification withSourceMdmAccount(String sourceMdmAccount)

Set the sourceMdmAccount property: The source MDM account.

Parameters:

sourceMdmAccount - the sourceMdmAccount value to set.

Returns:

the MetricSpecification object itself.

withSourceMdmNamespace

public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)

Set the sourceMdmNamespace property: The source MDM namespace.

Parameters:

sourceMdmNamespace - the sourceMdmNamespace value to set.

Returns:

the MetricSpecification object itself.

withUnit

public MetricSpecification withUnit(String unit)

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

Parameters:

unit - the unit value to set.

Returns:

the MetricSpecification object itself.

Applies to