Class MetricSpecificationV1
java.lang.Object
com.azure.resourcemanager.databoxedge.models.MetricSpecificationV1
Metric specification version 1.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationType property: Metric aggregation type.category()
Get the category property: Metric category.Get the dimensions property: Metric dimensions, other than default dimension which is resource.Get the displayDescription property: Description of the metric to be displayed.Get the displayName property: Display name of the metric.Get the fillGapWithZero property: Set true to fill the gaps with zero.name()
Get the name property: Name of the metric.Get the resourceIdDimensionNameOverride property: Resource name override.Get the supportedAggregationTypes property: Support metric aggregation type.Get the supportedTimeGrainTypes property: Support granularity of metrics.unit()
Get the unit property: Metric units.void
validate()
Validates the instance.withAggregationType
(MetricAggregationType aggregationType) Set the aggregationType property: Metric aggregation type.withCategory
(MetricCategory category) Set the category property: Metric category.withDimensions
(List<MetricDimensionV1> dimensions) Set the dimensions property: Metric dimensions, other than default dimension which is resource.withDisplayDescription
(String displayDescription) Set the displayDescription property: Description of the metric to be displayed.withDisplayName
(String displayName) Set the displayName property: Display name of the metric.withFillGapWithZero
(Boolean fillGapWithZero) Set the fillGapWithZero property: Set true to fill the gaps with zero.Set the name property: Name of the metric.withResourceIdDimensionNameOverride
(String resourceIdDimensionNameOverride) Set the resourceIdDimensionNameOverride property: Resource name override.withSupportedAggregationTypes
(List<MetricAggregationType> supportedAggregationTypes) Set the supportedAggregationTypes property: Support metric aggregation type.withSupportedTimeGrainTypes
(List<TimeGrain> supportedTimeGrainTypes) Set the supportedTimeGrainTypes property: Support granularity of metrics.withUnit
(MetricUnit unit) Set the unit property: Metric units.
-
Constructor Details
-
MetricSpecificationV1
public MetricSpecificationV1()Creates an instance of MetricSpecificationV1 class.
-
-
Method Details
-
name
Get the name property: Name of the metric.- Returns:
- the name value.
-
withName
Set the name property: Name of the metric.- Parameters:
name
- the name value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
displayName
Get the displayName property: Display name of the metric.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name of the metric.- Parameters:
displayName
- the displayName value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
displayDescription
Get the displayDescription property: Description of the metric to be displayed.- Returns:
- the displayDescription value.
-
withDisplayDescription
Set the displayDescription property: Description of the metric to be displayed.- Parameters:
displayDescription
- the displayDescription value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
unit
Get the unit property: Metric units.- Returns:
- the unit value.
-
withUnit
Set the unit property: Metric units.- Parameters:
unit
- the unit value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
aggregationType
Get the aggregationType property: Metric aggregation type.- Returns:
- the aggregationType value.
-
withAggregationType
Set the aggregationType property: Metric aggregation type.- Parameters:
aggregationType
- the aggregationType value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
dimensions
Get the dimensions property: Metric dimensions, other than default dimension which is resource.- Returns:
- the dimensions value.
-
withDimensions
Set the dimensions property: Metric dimensions, other than default dimension which is resource.- Parameters:
dimensions
- the dimensions value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
fillGapWithZero
Get the fillGapWithZero property: Set true to fill the gaps with zero.- Returns:
- the fillGapWithZero value.
-
withFillGapWithZero
Set the fillGapWithZero property: Set true to fill the gaps with zero.- Parameters:
fillGapWithZero
- the fillGapWithZero value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
category
Get the category property: Metric category.- Returns:
- the category value.
-
withCategory
Set the category property: Metric category.- Parameters:
category
- the category value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
resourceIdDimensionNameOverride
Get the resourceIdDimensionNameOverride property: Resource name override.- Returns:
- the resourceIdDimensionNameOverride value.
-
withResourceIdDimensionNameOverride
public MetricSpecificationV1 withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride) Set the resourceIdDimensionNameOverride property: Resource name override.- Parameters:
resourceIdDimensionNameOverride
- the resourceIdDimensionNameOverride value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
supportedTimeGrainTypes
Get the supportedTimeGrainTypes property: Support granularity of metrics.- Returns:
- the supportedTimeGrainTypes value.
-
withSupportedTimeGrainTypes
Set the supportedTimeGrainTypes property: Support granularity of metrics.- Parameters:
supportedTimeGrainTypes
- the supportedTimeGrainTypes value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
supportedAggregationTypes
Get the supportedAggregationTypes property: Support metric aggregation type.- Returns:
- the supportedAggregationTypes value.
-
withSupportedAggregationTypes
public MetricSpecificationV1 withSupportedAggregationTypes(List<MetricAggregationType> supportedAggregationTypes) Set the supportedAggregationTypes property: Support metric aggregation type.- Parameters:
supportedAggregationTypes
- the supportedAggregationTypes value to set.- Returns:
- the MetricSpecificationV1 object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-