Class MetricSpecification
java.lang.Object
com.azure.resourcemanager.netapp.models.MetricSpecification
Metric specification of operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationType property: Aggregation type could be Average.category()
Get the category property: The category this metric specification belong to, could be Capacity.Get the dimensions property: Dimensions of blobs, including blob type and access tier.Get the displayDescription property: Display description of metric specification.Get the displayName property: Display name of metric specification.Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.Get the fillGapWithZero property: The property to decide fill gap with zero or not.Get the internalMetricName property: The internal metric name.Get the isInternal property: Whether the metric is internal.name()
Get the name property: Name of metric specification.Get the resourceIdDimensionNameOverride property: Account Resource Id.Get the sourceMdmAccount property: The source MDM account.Get the sourceMdmNamespace property: The source MDM namespace.Get the supportedAggregationTypes property: Support metric aggregation type.Get the supportedTimeGrainTypes property: The supported time grain types for the metrics.unit()
Get the unit property: Unit could be Bytes or Count.void
validate()
Validates the instance.withAggregationType
(String aggregationType) Set the aggregationType property: Aggregation type could be Average.withCategory
(String category) Set the category property: The category this metric specification belong to, could be Capacity.withDimensions
(List<Dimension> dimensions) Set the dimensions property: Dimensions of blobs, including blob type and access tier.withDisplayDescription
(String displayDescription) Set the displayDescription property: Display description of metric specification.withDisplayName
(String displayName) Set the displayName property: Display name of metric specification.withEnableRegionalMdmAccount
(Boolean enableRegionalMdmAccount) Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.withFillGapWithZero
(Boolean fillGapWithZero) Set the fillGapWithZero property: The property to decide fill gap with zero or not.withInternalMetricName
(String internalMetricName) Set the internalMetricName property: The internal metric name.withIsInternal
(Boolean isInternal) Set the isInternal property: Whether the metric is internal.Set the name property: Name of metric specification.withResourceIdDimensionNameOverride
(String resourceIdDimensionNameOverride) Set the resourceIdDimensionNameOverride property: Account Resource Id.withSourceMdmAccount
(String sourceMdmAccount) Set the sourceMdmAccount property: The source MDM account.withSourceMdmNamespace
(String sourceMdmNamespace) Set the sourceMdmNamespace property: The source MDM namespace.withSupportedAggregationTypes
(List<MetricAggregationType> supportedAggregationTypes) Set the supportedAggregationTypes property: Support metric aggregation type.withSupportedTimeGrainTypes
(List<String> supportedTimeGrainTypes) Set the supportedTimeGrainTypes property: The supported time grain types for the metrics.Set the unit property: Unit could be Bytes or Count.
-
Constructor Details
-
MetricSpecification
public MetricSpecification()
-
-
Method Details
-
name
Get the name property: Name of metric specification.- Returns:
- the name value.
-
withName
Set the name property: Name of metric specification.- Parameters:
name
- the name value to set.- Returns:
- the MetricSpecification object itself.
-
displayName
Get the displayName property: Display name of metric specification.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name of metric specification.- Parameters:
displayName
- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
Get the displayDescription property: Display description of metric specification.- Returns:
- the displayDescription value.
-
withDisplayDescription
Set the displayDescription property: Display description of metric specification.- Parameters:
displayDescription
- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
Get the unit property: Unit could be Bytes or Count.- Returns:
- the unit value.
-
withUnit
Set the unit property: Unit could be Bytes or Count.- Parameters:
unit
- the unit value to set.- Returns:
- the MetricSpecification object itself.
-
supportedAggregationTypes
Get the supportedAggregationTypes property: Support metric aggregation type.- Returns:
- the supportedAggregationTypes value.
-
withSupportedAggregationTypes
public MetricSpecification withSupportedAggregationTypes(List<MetricAggregationType> supportedAggregationTypes) Set the supportedAggregationTypes property: Support metric aggregation type.- Parameters:
supportedAggregationTypes
- the supportedAggregationTypes value to set.- Returns:
- the MetricSpecification object itself.
-
supportedTimeGrainTypes
Get the supportedTimeGrainTypes property: The supported time grain types for the metrics.- Returns:
- the supportedTimeGrainTypes value.
-
withSupportedTimeGrainTypes
Set the supportedTimeGrainTypes property: The supported time grain types for the metrics.- Parameters:
supportedTimeGrainTypes
- the supportedTimeGrainTypes value to set.- Returns:
- the MetricSpecification object itself.
-
internalMetricName
Get the internalMetricName property: The internal metric name.- Returns:
- the internalMetricName value.
-
withInternalMetricName
Set the internalMetricName property: The internal metric name.- Parameters:
internalMetricName
- the internalMetricName value to set.- Returns:
- the MetricSpecification object itself.
-
enableRegionalMdmAccount
Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.- Returns:
- the enableRegionalMdmAccount value.
-
withEnableRegionalMdmAccount
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.
-
sourceMdmAccount
Get the sourceMdmAccount property: The source MDM account.- Returns:
- the sourceMdmAccount value.
-
withSourceMdmAccount
Set the sourceMdmAccount property: The source MDM account.- Parameters:
sourceMdmAccount
- the sourceMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmNamespace
Get the sourceMdmNamespace property: The source MDM namespace.- Returns:
- the sourceMdmNamespace value.
-
withSourceMdmNamespace
Set the sourceMdmNamespace property: The source MDM namespace.- Parameters:
sourceMdmNamespace
- the sourceMdmNamespace value to set.- Returns:
- the MetricSpecification object itself.
-
dimensions
Get the dimensions property: Dimensions of blobs, including blob type and access tier.- Returns:
- the dimensions value.
-
withDimensions
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.
-
aggregationType
Get the aggregationType property: Aggregation type could be Average.- Returns:
- the aggregationType value.
-
withAggregationType
Set the aggregationType property: Aggregation type could be Average.- Parameters:
aggregationType
- the aggregationType value to set.- Returns:
- the MetricSpecification object itself.
-
fillGapWithZero
Get the fillGapWithZero property: The property to decide fill gap with zero or not.- Returns:
- the fillGapWithZero value.
-
withFillGapWithZero
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.
-
category
Get the category property: The category this metric specification belong to, could be Capacity.- Returns:
- the category value.
-
withCategory
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.
-
resourceIdDimensionNameOverride
Get the resourceIdDimensionNameOverride property: Account Resource Id.- Returns:
- the resourceIdDimensionNameOverride value.
-
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.
-
isInternal
Get the isInternal property: Whether the metric is internal.- Returns:
- the isInternal value.
-
withIsInternal
Set the isInternal property: Whether the metric is internal.- Parameters:
isInternal
- the isInternal value to set.- Returns:
- the MetricSpecification object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-