public final class MetricSpecification extends Object
| Constructor and Description |
|---|
MetricSpecification() |
| Modifier and Type | Method and Description |
|---|---|
String |
aggregationType()
Get the aggregationType property: The aggregation type.
|
List<Availability> |
availabilities()
Get the availabilities property: List of availability.
|
List<Dimension> |
dimensions()
Get the dimensions property: List of dimensions.
|
String |
displayDescription()
Get the displayDescription property: The description of the metric.
|
String |
displayName()
Get the displayName property: The display name of the metric.
|
Boolean |
enableRegionalMdmAccount()
Get the enableRegionalMdmAccount property: Whether regional MDM account enabled.
|
Boolean |
fillGapWithZero()
Get the fillGapWithZero property: Whether gaps would be filled with zeros.
|
Boolean |
isInternal()
Get the isInternal property: Whether the metric is internal.
|
String |
metricFilterPattern()
Get the metricFilterPattern property: Pattern for the filter of the metric.
|
String |
name()
Get the name property: The name of the metric.
|
String |
resourceIdDimensionNameOverride()
Get the resourceIdDimensionNameOverride property: The resource Id dimension name override.
|
String |
sourceMdmAccount()
Get the sourceMdmAccount property: The source MDM account.
|
String |
sourceMdmNamespace()
Get the sourceMdmNamespace property: The source MDM namespace.
|
String |
unit()
Get the unit property: Units the metric to be displayed in.
|
void |
validate()
Validates the instance.
|
MetricSpecification |
withAggregationType(String aggregationType)
Set the aggregationType property: The aggregation type.
|
MetricSpecification |
withAvailabilities(List<Availability> availabilities)
Set the availabilities property: List of availability.
|
MetricSpecification |
withDimensions(List<Dimension> dimensions)
Set the dimensions property: List of dimensions.
|
MetricSpecification |
withDisplayDescription(String displayDescription)
Set the displayDescription property: The description of the metric.
|
MetricSpecification |
withDisplayName(String displayName)
Set the displayName property: The display name of the metric.
|
MetricSpecification |
withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)
Set the enableRegionalMdmAccount property: Whether regional MDM account enabled.
|
MetricSpecification |
withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: Whether gaps would be filled with zeros.
|
MetricSpecification |
withIsInternal(Boolean isInternal)
Set the isInternal property: Whether the metric is internal.
|
MetricSpecification |
withMetricFilterPattern(String metricFilterPattern)
Set the metricFilterPattern property: Pattern for the filter of the metric.
|
MetricSpecification |
withName(String name)
Set the name property: The name of the metric.
|
MetricSpecification |
withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
Set the resourceIdDimensionNameOverride property: The resource Id dimension name override.
|
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 |
withUnit(String unit)
Set the unit property: Units the metric to be displayed in.
|
public String name()
public MetricSpecification withName(String name)
name - the name value to set.public String displayName()
public MetricSpecification withDisplayName(String displayName)
displayName - the displayName value to set.public String displayDescription()
public MetricSpecification withDisplayDescription(String displayDescription)
displayDescription - the displayDescription value to set.public String unit()
public MetricSpecification withUnit(String unit)
unit - the unit value to set.public String aggregationType()
public MetricSpecification withAggregationType(String aggregationType)
aggregationType - the aggregationType value to set.public List<Availability> availabilities()
public MetricSpecification withAvailabilities(List<Availability> availabilities)
availabilities - the availabilities value to set.public Boolean enableRegionalMdmAccount()
public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)
enableRegionalMdmAccount - the enableRegionalMdmAccount value to set.public Boolean fillGapWithZero()
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
fillGapWithZero - the fillGapWithZero value to set.public String metricFilterPattern()
public MetricSpecification withMetricFilterPattern(String metricFilterPattern)
metricFilterPattern - the metricFilterPattern value to set.public List<Dimension> dimensions()
public MetricSpecification withDimensions(List<Dimension> dimensions)
dimensions - the dimensions value to set.public Boolean isInternal()
public MetricSpecification withIsInternal(Boolean isInternal)
isInternal - the isInternal value to set.public String sourceMdmAccount()
public MetricSpecification withSourceMdmAccount(String sourceMdmAccount)
sourceMdmAccount - the sourceMdmAccount value to set.public String sourceMdmNamespace()
public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)
sourceMdmNamespace - the sourceMdmNamespace value to set.public String resourceIdDimensionNameOverride()
public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
resourceIdDimensionNameOverride - the resourceIdDimensionNameOverride value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.