Class MetricSpecification
java.lang.Object
com.azure.resourcemanager.storagecache.models.MetricSpecification
Details about operation related to metrics.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationType property: The type of metric aggregation.Get the dimensions property: Dimensions of the metric.Get the displayDescription property: The description of the metric.Get the displayName property: Localized display name of the metric.Get the metricClass property: Type of metrics.name()
Get the name property: The name of the metric.Get the supportedAggregationTypes property: Support metric aggregation type.unit()
Get the unit property: The unit that the metric is measured in.void
validate()
Validates the instance.withAggregationType
(String aggregationType) Set the aggregationType property: The type of metric aggregation.withDimensions
(List<MetricDimension> dimensions) Set the dimensions property: Dimensions of the metric.withDisplayDescription
(String displayDescription) Set the displayDescription property: The description of the metric.withDisplayName
(String displayName) Set the displayName property: Localized display name of the metric.withMetricClass
(String metricClass) Set the metricClass property: Type of metrics.Set the name property: The name of the metric.withSupportedAggregationTypes
(List<MetricAggregationType> supportedAggregationTypes) Set the supportedAggregationTypes property: Support metric aggregation type.Set the unit property: The unit that the metric is measured in.
-
Constructor Details
-
MetricSpecification
public MetricSpecification()Creates an instance of MetricSpecification class.
-
-
Method Details
-
name
Get the name property: The name of the metric.- Returns:
- the name value.
-
withName
Set the name property: The name of the metric.- Parameters:
name
- the name value to set.- Returns:
- the MetricSpecification object itself.
-
displayName
Get the displayName property: Localized display name of the metric.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Localized display name of the metric.- Parameters:
displayName
- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
Get the displayDescription property: The description of the metric.- Returns:
- the displayDescription value.
-
withDisplayDescription
Set the displayDescription property: The description of the metric.- Parameters:
displayDescription
- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
Get the unit property: The unit that the metric is measured in.- Returns:
- the unit value.
-
withUnit
Set the unit property: The unit that the metric is measured in.- Parameters:
unit
- the unit value to set.- Returns:
- the MetricSpecification object itself.
-
aggregationType
Get the aggregationType property: The type of metric aggregation.- Returns:
- the aggregationType value.
-
withAggregationType
Set the aggregationType property: The type of metric aggregation.- Parameters:
aggregationType
- the aggregationType 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.
-
metricClass
Get the metricClass property: Type of metrics.- Returns:
- the metricClass value.
-
withMetricClass
Set the metricClass property: Type of metrics.- Parameters:
metricClass
- the metricClass value to set.- Returns:
- the MetricSpecification object itself.
-
dimensions
Get the dimensions property: Dimensions of the metric.- Returns:
- the dimensions value.
-
withDimensions
Set the dimensions property: Dimensions of the metric.- Parameters:
dimensions
- the dimensions value to set.- Returns:
- the MetricSpecification object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-