Class MetricSpecification
java.lang.Object
com.azure.resourcemanager.powerbidedicated.models.MetricSpecification
Metric specification for exposing performance metrics to shoebox.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationType property: Aggregation type for the metric.Get the dimensions property: For describing multi dimensional metrics.Get the displayDescription property: Localizable description of metric.Get the displayName property: Localizable metric name.Get the metricFilterPattern property: Pattern used to filter the metric.name()
Get the name property: Metric name.unit()
Get the unit property: Unit for the metric.void
validate()
Validates the instance.withDimensions
(List<MetricSpecificationDimensionsItem> dimensions) Set the dimensions property: For describing multi dimensional metrics.withDisplayDescription
(String displayDescription) Set the displayDescription property: Localizable description of metric.withDisplayName
(String displayName) Set the displayName property: Localizable metric name.
-
Constructor Details
-
MetricSpecification
public MetricSpecification()Creates an instance of MetricSpecification class.
-
-
Method Details
-
name
Get the name property: Metric name.- Returns:
- the name value.
-
displayName
Get the displayName property: Localizable metric name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Localizable metric name.- Parameters:
displayName
- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
Get the displayDescription property: Localizable description of metric.- Returns:
- the displayDescription value.
-
withDisplayDescription
Set the displayDescription property: Localizable description of metric.- Parameters:
displayDescription
- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
Get the unit property: Unit for the metric.- Returns:
- the unit value.
-
aggregationType
Get the aggregationType property: Aggregation type for the metric.- Returns:
- the aggregationType value.
-
metricFilterPattern
Get the metricFilterPattern property: Pattern used to filter the metric.- Returns:
- the metricFilterPattern value.
-
dimensions
Get the dimensions property: For describing multi dimensional metrics.- Returns:
- the dimensions value.
-
withDimensions
Set the dimensions property: For describing multi dimensional metrics.- 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.
-