Class MetricSpecification
java.lang.Object
com.azure.resourcemanager.mixedreality.models.MetricSpecification
Specifications of the Metrics for Azure Monitoring.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationType property: Only provide one value for this field.category()
Get the category property: Metric category.Get the dimensions property: Dimensions of the metric.Get the displayDescription property: Localized friendly description of the metric.Get the displayName property: Localized friendly display name of the metric.Get the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.Get the fillGapWithZero property: Flag to determine is Zero is returned for time duration where no metric is emitted.Get the internalMetricName property: Internal metric name.Get the lockedAggregationType property: Locked aggregation type of the metric.Get the metricFilterPattern property: Metric filter regex pattern.name()
Get the name property: Name of the metric.Get the sourceMdmAccount property: Source mdm account.Get the sourceMdmNamespace property: Source mdm namespace.Get the supportedAggregationTypes property: Supported aggregation types.Get the supportedTimeGrainTypes property: Supported time grains.unit()
Get the unit property: Unit that makes sense for the metric.void
validate()
Validates the instance.withAggregationType
(String aggregationType) Set the aggregationType property: Only provide one value for this field.withCategory
(String category) Set the category property: Metric category.withDimensions
(List<MetricDimension> dimensions) Set the dimensions property: Dimensions of the metric.withDisplayDescription
(String displayDescription) Set the displayDescription property: Localized friendly description of the metric.withDisplayName
(String displayName) Set the displayName property: Localized friendly display name of the metric.withEnableRegionalMdmAccount
(Boolean enableRegionalMdmAccount) Set the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.withFillGapWithZero
(Boolean fillGapWithZero) Set the fillGapWithZero property: Flag to determine is Zero is returned for time duration where no metric is emitted.withInternalMetricName
(String internalMetricName) Set the internalMetricName property: Internal metric name.withLockedAggregationType
(String lockedAggregationType) Set the lockedAggregationType property: Locked aggregation type of the metric.withMetricFilterPattern
(String metricFilterPattern) Set the metricFilterPattern property: Metric filter regex pattern.Set the name property: Name of the metric.withSourceMdmAccount
(String sourceMdmAccount) Set the sourceMdmAccount property: Source mdm account.withSourceMdmNamespace
(String sourceMdmNamespace) Set the sourceMdmNamespace property: Source mdm namespace.withSupportedAggregationTypes
(List<String> supportedAggregationTypes) Set the supportedAggregationTypes property: Supported aggregation types.withSupportedTimeGrainTypes
(List<String> supportedTimeGrainTypes) Set the supportedTimeGrainTypes property: Supported time grains.Set the unit property: Unit that makes sense for the metric.
-
Constructor Details
-
MetricSpecification
public MetricSpecification()Creates an instance of MetricSpecification 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 MetricSpecification object itself.
-
displayName
Get the displayName property: Localized friendly display name of the metric.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Localized friendly display name of the metric.- Parameters:
displayName
- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
Get the displayDescription property: Localized friendly description of the metric.- Returns:
- the displayDescription value.
-
withDisplayDescription
Set the displayDescription property: Localized friendly description of the metric.- Parameters:
displayDescription
- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
Get the unit property: Unit that makes sense for the metric.- Returns:
- the unit value.
-
withUnit
Set the unit property: Unit that makes sense for the metric.- Parameters:
unit
- the unit value to set.- Returns:
- the MetricSpecification object itself.
-
aggregationType
Get the aggregationType property: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.- Returns:
- the aggregationType value.
-
withAggregationType
Set the aggregationType property: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.- Parameters:
aggregationType
- the aggregationType value to set.- Returns:
- the MetricSpecification object itself.
-
supportedAggregationTypes
Get the supportedAggregationTypes property: Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count.- Returns:
- the supportedAggregationTypes value.
-
withSupportedAggregationTypes
Set the supportedAggregationTypes property: Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count.- Parameters:
supportedAggregationTypes
- the supportedAggregationTypes value to set.- Returns:
- the MetricSpecification object itself.
-
supportedTimeGrainTypes
Get the supportedTimeGrainTypes property: Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D.- Returns:
- the supportedTimeGrainTypes value.
-
withSupportedTimeGrainTypes
Set the supportedTimeGrainTypes property: Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D.- Parameters:
supportedTimeGrainTypes
- the supportedTimeGrainTypes value to set.- Returns:
- the MetricSpecification object itself.
-
enableRegionalMdmAccount
Get the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.- Returns:
- the enableRegionalMdmAccount value.
-
withEnableRegionalMdmAccount
Set the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.- Parameters:
enableRegionalMdmAccount
- the enableRegionalMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmAccount
Get the sourceMdmAccount property: Source mdm account.- Returns:
- the sourceMdmAccount value.
-
withSourceMdmAccount
Set the sourceMdmAccount property: Source mdm account.- Parameters:
sourceMdmAccount
- the sourceMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmNamespace
Get the sourceMdmNamespace property: Source mdm namespace.- Returns:
- the sourceMdmNamespace value.
-
withSourceMdmNamespace
Set the sourceMdmNamespace property: Source mdm namespace.- Parameters:
sourceMdmNamespace
- the sourceMdmNamespace value to set.- Returns:
- the MetricSpecification object itself.
-
metricFilterPattern
Get the metricFilterPattern property: Metric filter regex pattern.- Returns:
- the metricFilterPattern value.
-
withMetricFilterPattern
Set the metricFilterPattern property: Metric filter regex pattern.- Parameters:
metricFilterPattern
- the metricFilterPattern value to set.- Returns:
- the MetricSpecification object itself.
-
fillGapWithZero
Get the fillGapWithZero property: Flag to determine is Zero is returned for time duration where no metric is emitted.- Returns:
- the fillGapWithZero value.
-
withFillGapWithZero
Set the fillGapWithZero property: Flag to determine is Zero is returned for time duration where no metric is emitted.- Parameters:
fillGapWithZero
- the fillGapWithZero value to set.- Returns:
- the MetricSpecification 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 MetricSpecification object itself.
-
internalMetricName
Get the internalMetricName property: Internal metric name.- Returns:
- the internalMetricName value.
-
withInternalMetricName
Set the internalMetricName property: Internal metric name.- Parameters:
internalMetricName
- the internalMetricName 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.
-
lockedAggregationType
Get the lockedAggregationType property: Locked aggregation type of the metric.- Returns:
- the lockedAggregationType value.
-
withLockedAggregationType
Set the lockedAggregationType property: Locked aggregation type of the metric.- Parameters:
lockedAggregationType
- the lockedAggregationType value to set.- Returns:
- the MetricSpecification object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-