MetricSpecification Class

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

Implements

public final class MetricSpecification
implements JsonSerializable<MetricSpecification>

Definition of a single resource metric.

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

List<MetricAvailability> availabilities()

Get the availabilities property: The availabilities property.

String category()

Get the category property: The category property.

List<Dimension> dimensions()

Get the dimensions property: The dimensions property.

String displayDescription()

Get the displayDescription property: The displayDescription property.

String displayName()

Get the displayName property: The displayName property.

Boolean enableRegionalMdmAccount()

Get the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.

Boolean fillGapWithZero()

Get the fillGapWithZero property: The fillGapWithZero property.

static MetricSpecification fromJson(JsonReader jsonReader)

Reads an instance of MetricSpecification from the JsonReader.

Boolean isInternal()

Get the isInternal property: The isInternal property.

String metricFilterPattern()

Get the metricFilterPattern property: The metricFilterPattern property.

String name()

Get the name property: The name property.

String sourceMdmAccount()

Get the sourceMdmAccount property: The sourceMdmAccount property.

String sourceMdmNamespace()

Get the sourceMdmNamespace property: The sourceMdmNamespace property.

List<String> supportedAggregationTypes()

Get the supportedAggregationTypes property: The supportedAggregationTypes property.

List<String> supportedTimeGrainTypes()

Get the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.

Boolean supportsInstanceLevelAggregation()

Get the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: The unit property.

void validate()

Validates the instance.

MetricSpecification withAggregationType(String aggregationType)

Set the aggregationType property: The aggregationType property.

MetricSpecification withAvailabilities(List<MetricAvailability> availabilities)

Set the availabilities property: The availabilities property.

MetricSpecification withCategory(String category)

Set the category property: The category property.

MetricSpecification withDimensions(List<Dimension> dimensions)

Set the dimensions property: The dimensions property.

MetricSpecification withDisplayDescription(String displayDescription)

Set the displayDescription property: The displayDescription property.

MetricSpecification withDisplayName(String displayName)

Set the displayName property: The displayName property.

MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)

Set the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.

MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)

Set the fillGapWithZero property: The fillGapWithZero property.

MetricSpecification withIsInternal(Boolean isInternal)

Set the isInternal property: The isInternal property.

MetricSpecification withMetricFilterPattern(String metricFilterPattern)

Set the metricFilterPattern property: The metricFilterPattern property.

MetricSpecification withName(String name)

Set the name property: The name property.

MetricSpecification withSourceMdmAccount(String sourceMdmAccount)

Set the sourceMdmAccount property: The sourceMdmAccount property.

MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)

Set the sourceMdmNamespace property: The sourceMdmNamespace property.

MetricSpecification withSupportedAggregationTypes(List<String> supportedAggregationTypes)

Set the supportedAggregationTypes property: The supportedAggregationTypes property.

MetricSpecification withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)

Set the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.

MetricSpecification withSupportsInstanceLevelAggregation(Boolean supportsInstanceLevelAggregation)

Set the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.

MetricSpecification withUnit(String unit)

Set the unit property: The unit property.

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

Returns:

the aggregationType value.

availabilities

public List availabilities()

Get the availabilities property: The availabilities property.

Returns:

the availabilities value.

category

public String category()

Get the category property: The category property.

Returns:

the category value.

dimensions

public List dimensions()

Get the dimensions property: The dimensions property.

Returns:

the dimensions value.

displayDescription

public String displayDescription()

Get the displayDescription property: The displayDescription property.

Returns:

the displayDescription value.

displayName

public String displayName()

Get the displayName property: The displayName property.

Returns:

the displayName value.

enableRegionalMdmAccount

public Boolean enableRegionalMdmAccount()

Get the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.

Returns:

the enableRegionalMdmAccount value.

fillGapWithZero

public Boolean fillGapWithZero()

Get the fillGapWithZero property: The fillGapWithZero property.

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: The isInternal property.

Returns:

the isInternal value.

metricFilterPattern

public String metricFilterPattern()

Get the metricFilterPattern property: The metricFilterPattern property.

Returns:

the metricFilterPattern value.

name

public String name()

Get the name property: The name property.

Returns:

the name value.

sourceMdmAccount

public String sourceMdmAccount()

Get the sourceMdmAccount property: The sourceMdmAccount property.

Returns:

the sourceMdmAccount value.

sourceMdmNamespace

public String sourceMdmNamespace()

Get the sourceMdmNamespace property: The sourceMdmNamespace property.

Returns:

the sourceMdmNamespace value.

supportedAggregationTypes

public List supportedAggregationTypes()

Get the supportedAggregationTypes property: The supportedAggregationTypes property.

Returns:

the supportedAggregationTypes value.

supportedTimeGrainTypes

public List supportedTimeGrainTypes()

Get the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.

Returns:

the supportedTimeGrainTypes value.

supportsInstanceLevelAggregation

public Boolean supportsInstanceLevelAggregation()

Get the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.

Returns:

the supportsInstanceLevelAggregation value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: The unit property.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withAggregationType

public MetricSpecification withAggregationType(String aggregationType)

Set the aggregationType property: The aggregationType property.

Parameters:

aggregationType - the aggregationType value to set.

Returns:

the MetricSpecification object itself.

withAvailabilities

public MetricSpecification withAvailabilities(List availabilities)

Set the availabilities property: The availabilities property.

Parameters:

availabilities - the availabilities value to set.

Returns:

the MetricSpecification object itself.

withCategory

public MetricSpecification withCategory(String category)

Set the category property: The category property.

Parameters:

category - the category value to set.

Returns:

the MetricSpecification object itself.

withDimensions

public MetricSpecification withDimensions(List dimensions)

Set the dimensions property: The dimensions property.

Parameters:

dimensions - the dimensions value to set.

Returns:

the MetricSpecification object itself.

withDisplayDescription

public MetricSpecification withDisplayDescription(String displayDescription)

Set the displayDescription property: The displayDescription property.

Parameters:

displayDescription - the displayDescription value to set.

Returns:

the MetricSpecification object itself.

withDisplayName

public MetricSpecification withDisplayName(String displayName)

Set the displayName property: The displayName property.

Parameters:

displayName - the displayName value to set.

Returns:

the MetricSpecification object itself.

withEnableRegionalMdmAccount

public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)

Set the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.

Parameters:

enableRegionalMdmAccount - the enableRegionalMdmAccount value to set.

Returns:

the MetricSpecification object itself.

withFillGapWithZero

public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)

Set the fillGapWithZero property: The fillGapWithZero property.

Parameters:

fillGapWithZero - the fillGapWithZero value to set.

Returns:

the MetricSpecification object itself.

withIsInternal

public MetricSpecification withIsInternal(Boolean isInternal)

Set the isInternal property: The isInternal property.

Parameters:

isInternal - the isInternal value to set.

Returns:

the MetricSpecification object itself.

withMetricFilterPattern

public MetricSpecification withMetricFilterPattern(String metricFilterPattern)

Set the metricFilterPattern property: The metricFilterPattern property.

Parameters:

metricFilterPattern - the metricFilterPattern value to set.

Returns:

the MetricSpecification object itself.

withName

public MetricSpecification withName(String name)

Set the name property: The name property.

Parameters:

name - the name value to set.

Returns:

the MetricSpecification object itself.

withSourceMdmAccount

public MetricSpecification withSourceMdmAccount(String sourceMdmAccount)

Set the sourceMdmAccount property: The sourceMdmAccount property.

Parameters:

sourceMdmAccount - the sourceMdmAccount value to set.

Returns:

the MetricSpecification object itself.

withSourceMdmNamespace

public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)

Set the sourceMdmNamespace property: The sourceMdmNamespace property.

Parameters:

sourceMdmNamespace - the sourceMdmNamespace value to set.

Returns:

the MetricSpecification object itself.

withSupportedAggregationTypes

public MetricSpecification withSupportedAggregationTypes(List supportedAggregationTypes)

Set the supportedAggregationTypes property: The supportedAggregationTypes property.

Parameters:

supportedAggregationTypes - the supportedAggregationTypes value to set.

Returns:

the MetricSpecification object itself.

withSupportedTimeGrainTypes

public MetricSpecification withSupportedTimeGrainTypes(List supportedTimeGrainTypes)

Set the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.

Parameters:

supportedTimeGrainTypes - the supportedTimeGrainTypes value to set.

Returns:

the MetricSpecification object itself.

withSupportsInstanceLevelAggregation

public MetricSpecification withSupportsInstanceLevelAggregation(Boolean supportsInstanceLevelAggregation)

Set the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.

Parameters:

supportsInstanceLevelAggregation - the supportsInstanceLevelAggregation value to set.

Returns:

the MetricSpecification object itself.

withUnit

public MetricSpecification withUnit(String unit)

Set the unit property: The unit property.

Parameters:

unit - the unit value to set.

Returns:

the MetricSpecification object itself.

Applies to