MetricSpecification Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. MetricSpecification
- com.
Implements
public final class MetricSpecification
implements JsonSerializable<MetricSpecification>
Description of metrics specification.
Constructor Summary
Constructor | Description |
---|---|
MetricSpecification() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
aggregationType()
Get the aggregation |
List<Availability> |
availabilities()
Get the availabilities property: List of availability. |
List<Dimension> |
dimensions()
Get the dimensions property: List of dimensions. |
String |
displayDescription()
Get the display |
String |
displayName()
Get the display |
Boolean |
enableRegionalMdmAccount()
Get the enable |
Boolean |
fillGapWithZero()
Get the fill |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
Boolean |
isInternal()
Get the is |
String |
metricFilterPattern()
Get the metric |
String |
name()
Get the name property: The name of the metric. |
String |
resourceIdDimensionNameOverride()
Get the resource |
String |
sourceMdmAccount()
Get the source |
String |
sourceMdmNamespace()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
String |
unit()
Get the unit property: Units the metric to be displayed in. |
void |
validate()
Validates the instance. |
Metric |
withAggregationType(String aggregationType)
Set the aggregation |
Metric |
withAvailabilities(List<Availability> availabilities)
Set the availabilities property: List of availability. |
Metric |
withDimensions(List<Dimension> dimensions)
Set the dimensions property: List of dimensions. |
Metric |
withDisplayDescription(String displayDescription)
Set the display |
Metric |
withDisplayName(String displayName)
Set the display |
Metric |
withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)
Set the enable |
Metric |
withFillGapWithZero(Boolean fillGapWithZero)
Set the fill |
Metric |
withIsInternal(Boolean isInternal)
Set the is |
Metric |
withMetricFilterPattern(String metricFilterPattern)
Set the metric |
Metric |
withName(String name)
Set the name property: The name of the metric. |
Metric |
withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
Set the resource |
Metric |
withSourceMdmAccount(String sourceMdmAccount)
Set the source |
Metric |
withSourceMdmNamespace(String sourceMdmNamespace)
Set the source |
Metric |
withUnit(String unit)
Set the unit property: Units the metric to be displayed in. |
Methods inherited from java.lang.Object
Constructor Details
MetricSpecification
public MetricSpecification()
Creates an instance of MetricSpecification class.
Method Details
aggregationType
public String aggregationType()
Get the aggregationType property: The aggregation type.
Returns:
availabilities
public List
Get the availabilities property: List of availability.
Returns:
dimensions
public List
Get the dimensions property: List of dimensions.
Returns:
displayDescription
public String displayDescription()
Get the displayDescription property: The description of the metric.
Returns:
displayName
public String displayName()
Get the displayName property: The display name of the metric.
Returns:
enableRegionalMdmAccount
public Boolean enableRegionalMdmAccount()
Get the enableRegionalMdmAccount property: Whether regional MDM account enabled.
Returns:
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: Whether gaps would be filled with zeros.
Returns:
fromJson
public static MetricSpecification fromJson(JsonReader jsonReader)
Reads an instance of MetricSpecification from the JsonReader.
Parameters:
Returns:
Throws:
isInternal
public Boolean isInternal()
Get the isInternal property: Whether the metric is internal.
Returns:
metricFilterPattern
public String metricFilterPattern()
Get the metricFilterPattern property: Pattern for the filter of the metric.
Returns:
name
public String name()
Get the name property: The name of the metric.
Returns:
resourceIdDimensionNameOverride
public String resourceIdDimensionNameOverride()
Get the resourceIdDimensionNameOverride property: The resource Id dimension name override.
Returns:
sourceMdmAccount
public String sourceMdmAccount()
Get the sourceMdmAccount property: The source MDM account.
Returns:
sourceMdmNamespace
public String sourceMdmNamespace()
Get the sourceMdmNamespace property: The source MDM namespace.
Returns:
toJson
unit
public String unit()
Get the unit property: Units the metric to be displayed in.
Returns:
validate
public void validate()
Validates the instance.
withAggregationType
public MetricSpecification withAggregationType(String aggregationType)
Set the aggregationType property: The aggregation type.
Parameters:
Returns:
withAvailabilities
public MetricSpecification withAvailabilities(List
Set the availabilities property: List of availability.
Parameters:
Returns:
withDimensions
public MetricSpecification withDimensions(List
Set the dimensions property: List of dimensions.
Parameters:
Returns:
withDisplayDescription
public MetricSpecification withDisplayDescription(String displayDescription)
Set the displayDescription property: The description of the metric.
Parameters:
Returns:
withDisplayName
public MetricSpecification withDisplayName(String displayName)
Set the displayName property: The display name of the metric.
Parameters:
Returns:
withEnableRegionalMdmAccount
public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)
Set the enableRegionalMdmAccount property: Whether regional MDM account enabled.
Parameters:
Returns:
withFillGapWithZero
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: Whether gaps would be filled with zeros.
Parameters:
Returns:
withIsInternal
public MetricSpecification withIsInternal(Boolean isInternal)
Set the isInternal property: Whether the metric is internal.
Parameters:
Returns:
withMetricFilterPattern
public MetricSpecification withMetricFilterPattern(String metricFilterPattern)
Set the metricFilterPattern property: Pattern for the filter of the metric.
Parameters:
Returns:
withName
public MetricSpecification withName(String name)
Set the name property: The name of the metric.
Parameters:
Returns:
withResourceIdDimensionNameOverride
public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
Set the resourceIdDimensionNameOverride property: The resource Id dimension name override.
Parameters:
Returns:
withSourceMdmAccount
public MetricSpecification withSourceMdmAccount(String sourceMdmAccount)
Set the sourceMdmAccount property: The source MDM account.
Parameters:
Returns:
withSourceMdmNamespace
public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)
Set the sourceMdmNamespace property: The source MDM namespace.
Parameters:
Returns:
withUnit
public MetricSpecification withUnit(String unit)
Set the unit property: Units the metric to be displayed in.
Parameters:
Returns: