MetricSpecification Class

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

public final class 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: Aggregation type could be Average.

String category()

Get the category property: The category this metric specification belong to, could be Capacity.

List<Dimension> dimensions()

Get the dimensions property: Dimensions of blobs, including blob type and access tier.

String displayDescription()

Get the displayDescription property: Display description of metric specification.

String displayName()

Get the displayName property: Display name of metric specification.

Boolean enableRegionalMdmAccount()

Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.

Boolean fillGapWithZero()

Get the fillGapWithZero property: The property to decide fill gap with zero or not.

String internalMetricName()

Get the internalMetricName property: The internal metric name.

Boolean isInternal()

Get the isInternal property: Whether the metric is internal.

String name()

Get the name property: Name of metric specification.

String resourceIdDimensionNameOverride()

Get the resourceIdDimensionNameOverride property: Account Resource Id.

String sourceMdmAccount()

Get the sourceMdmAccount property: The source MDM account.

String sourceMdmNamespace()

Get the sourceMdmNamespace property: The source MDM namespace.

List<MetricAggregationType> supportedAggregationTypes()

Get the supportedAggregationTypes property: Support metric aggregation type.

List<String> supportedTimeGrainTypes()

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

String unit()

Get the unit property: Unit could be Bytes or Count.

void validate()

Validates the instance.

MetricSpecification withAggregationType(String aggregationType)

Set the aggregationType property: Aggregation type could be Average.

MetricSpecification withCategory(String category)

Set the category property: The category this metric specification belong to, could be Capacity.

MetricSpecification withDimensions(List<Dimension> dimensions)

Set the dimensions property: Dimensions of blobs, including blob type and access tier.

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 withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)

Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.

MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)

Set the fillGapWithZero property: The property to decide fill gap with zero or not.

MetricSpecification withInternalMetricName(String internalMetricName)

Set the internalMetricName property: The internal metric name.

MetricSpecification withIsInternal(Boolean isInternal)

Set the isInternal property: Whether the metric is internal.

MetricSpecification withName(String name)

Set the name property: Name of metric specification.

MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)

Set the resourceIdDimensionNameOverride property: Account Resource Id.

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

Set the supportedAggregationTypes property: Support metric aggregation type.

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: Unit could be Bytes or Count.

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: Aggregation type could be Average.

Returns:

the aggregationType value.

category

public String category()

Get the category property: The category this metric specification belong to, could be Capacity.

Returns:

the category value.

dimensions

public List dimensions()

Get the dimensions property: Dimensions of blobs, including blob type and access tier.

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.

enableRegionalMdmAccount

public Boolean enableRegionalMdmAccount()

Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.

Returns:

the enableRegionalMdmAccount value.

fillGapWithZero

public Boolean fillGapWithZero()

Get the fillGapWithZero property: The property to decide fill gap with zero or not.

Returns:

the fillGapWithZero value.

internalMetricName

public String internalMetricName()

Get the internalMetricName property: The internal metric name.

Returns:

the internalMetricName value.

isInternal

public Boolean isInternal()

Get the isInternal property: Whether the metric is internal.

Returns:

the isInternal value.

name

public String name()

Get the name property: Name of metric specification.

Returns:

the name value.

resourceIdDimensionNameOverride

public String resourceIdDimensionNameOverride()

Get the resourceIdDimensionNameOverride property: Account Resource Id.

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.

supportedAggregationTypes

public List supportedAggregationTypes()

Get the supportedAggregationTypes property: Support metric aggregation type.

Returns:

the supportedAggregationTypes value.

supportedTimeGrainTypes

public List supportedTimeGrainTypes()

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

Returns:

the supportedTimeGrainTypes value.

unit

public String unit()

Get the unit property: Unit could be Bytes or Count.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withAggregationType

public MetricSpecification withAggregationType(String aggregationType)

Set the aggregationType property: Aggregation type could be Average.

Parameters:

aggregationType - the aggregationType value to set.

Returns:

the MetricSpecification object itself.

withCategory

public MetricSpecification withCategory(String category)

Set the category property: The category this metric specification belong to, could be Capacity.

Parameters:

category - the category value to set.

Returns:

the MetricSpecification object itself.

withDimensions

public MetricSpecification withDimensions(List dimensions)

Set the dimensions property: Dimensions of blobs, including blob type and access tier.

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.

withEnableRegionalMdmAccount

public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)

Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.

Parameters:

enableRegionalMdmAccount - the enableRegionalMdmAccount value to set.

Returns:

the MetricSpecification object itself.

withFillGapWithZero

public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)

Set the fillGapWithZero property: The property to decide fill gap with zero or not.

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.

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.

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.

withResourceIdDimensionNameOverride

public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)

Set the resourceIdDimensionNameOverride property: Account Resource Id.

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.

withSupportedAggregationTypes

public MetricSpecification withSupportedAggregationTypes(List supportedAggregationTypes)

Set the supportedAggregationTypes property: Support metric aggregation type.

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: Unit could be Bytes or Count.

Parameters:

unit - the unit value to set.

Returns:

the MetricSpecification object itself.

Applies to