MetricSpecification Class

  • java.lang.Object
    • com.azure.resourcemanager.mixedreality.models.MetricSpecification

public final class MetricSpecification

Specifications of the Metrics for Azure Monitoring.

Constructor Summary

Constructor Description
MetricSpecification()

Creates an instance of MetricSpecification class.

Method Summary

Modifier and Type Method and Description
String aggregationType()

Get the aggregationType property: Only provide one value for this field.

String category()

Get the category property: Metric category.

List<MetricDimension> dimensions()

Get the dimensions property: Dimensions of the metric.

String displayDescription()

Get the displayDescription property: Localized friendly description of the metric.

String displayName()

Get the displayName property: Localized friendly display name of the metric.

Boolean enableRegionalMdmAccount()

Get the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.

Boolean fillGapWithZero()

Get the fillGapWithZero property: Flag to determine is Zero is returned for time duration where no metric is emitted.

String internalMetricName()

Get the internalMetricName property: Internal metric name.

String lockedAggregationType()

Get the lockedAggregationType property: Locked aggregation type of the metric.

String metricFilterPattern()

Get the metricFilterPattern property: Metric filter regex pattern.

String name()

Get the name property: Name of the metric.

String sourceMdmAccount()

Get the sourceMdmAccount property: Source mdm account.

String sourceMdmNamespace()

Get the sourceMdmNamespace property: Source mdm namespace.

List<String> supportedAggregationTypes()

Get the supportedAggregationTypes property: Supported aggregation types.

List<String> supportedTimeGrainTypes()

Get the supportedTimeGrainTypes property: Supported time grains.

String unit()

Get the unit property: Unit that makes sense for the metric.

void validate()

Validates the instance.

MetricSpecification withAggregationType(String aggregationType)

Set the aggregationType property: Only provide one value for this field.

MetricSpecification withCategory(String category)

Set the category property: Metric category.

MetricSpecification withDimensions(List<MetricDimension> dimensions)

Set the dimensions property: Dimensions of the metric.

MetricSpecification withDisplayDescription(String displayDescription)

Set the displayDescription property: Localized friendly description of the metric.

MetricSpecification withDisplayName(String displayName)

Set the displayName property: Localized friendly display name of the metric.

MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)

Set the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.

MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)

Set the fillGapWithZero property: Flag to determine is Zero is returned for time duration where no metric is emitted.

MetricSpecification withInternalMetricName(String internalMetricName)

Set the internalMetricName property: Internal metric name.

MetricSpecification withLockedAggregationType(String lockedAggregationType)

Set the lockedAggregationType property: Locked aggregation type of the metric.

MetricSpecification withMetricFilterPattern(String metricFilterPattern)

Set the metricFilterPattern property: Metric filter regex pattern.

MetricSpecification withName(String name)

Set the name property: Name of the metric.

MetricSpecification withSourceMdmAccount(String sourceMdmAccount)

Set the sourceMdmAccount property: Source mdm account.

MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)

Set the sourceMdmNamespace property: Source mdm namespace.

MetricSpecification withSupportedAggregationTypes(List<String> supportedAggregationTypes)

Set the supportedAggregationTypes property: Supported aggregation types.

MetricSpecification withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)

Set the supportedTimeGrainTypes property: Supported time grains.

MetricSpecification withUnit(String unit)

Set the unit property: Unit that makes sense for the metric.

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: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.

Returns:

the aggregationType value.

category

public String category()

Get the category property: Metric category.

Returns:

the category value.

dimensions

public List dimensions()

Get the dimensions property: Dimensions of the metric.

Returns:

the dimensions value.

displayDescription

public String displayDescription()

Get the displayDescription property: Localized friendly description of the metric.

Returns:

the displayDescription value.

displayName

public String displayName()

Get the displayName property: Localized friendly display name of the metric.

Returns:

the displayName value.

enableRegionalMdmAccount

public Boolean enableRegionalMdmAccount()

Get the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.

Returns:

the enableRegionalMdmAccount value.

fillGapWithZero

public Boolean fillGapWithZero()

Get the fillGapWithZero property: Flag to determine is Zero is returned for time duration where no metric is emitted.

Returns:

the fillGapWithZero value.

internalMetricName

public String internalMetricName()

Get the internalMetricName property: Internal metric name.

Returns:

the internalMetricName value.

lockedAggregationType

public String lockedAggregationType()

Get the lockedAggregationType property: Locked aggregation type of the metric.

Returns:

the lockedAggregationType value.

metricFilterPattern

public String metricFilterPattern()

Get the metricFilterPattern property: Metric filter regex pattern.

Returns:

the metricFilterPattern value.

name

public String name()

Get the name property: Name of the metric.

Returns:

the name value.

sourceMdmAccount

public String sourceMdmAccount()

Get the sourceMdmAccount property: Source mdm account.

Returns:

the sourceMdmAccount value.

sourceMdmNamespace

public String sourceMdmNamespace()

Get the sourceMdmNamespace property: Source mdm namespace.

Returns:

the sourceMdmNamespace value.

supportedAggregationTypes

public List supportedAggregationTypes()

Get the supportedAggregationTypes property: Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count.

Returns:

the supportedAggregationTypes value.

supportedTimeGrainTypes

public List supportedTimeGrainTypes()

Get the supportedTimeGrainTypes property: Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D.

Returns:

the supportedTimeGrainTypes value.

unit

public String unit()

Get the unit property: Unit that makes sense for the metric.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withAggregationType

public MetricSpecification withAggregationType(String aggregationType)

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.

withCategory

public MetricSpecification withCategory(String category)

Set the category property: Metric category.

Parameters:

category - the category value to set.

Returns:

the MetricSpecification object itself.

withDimensions

public MetricSpecification withDimensions(List dimensions)

Set the dimensions property: Dimensions of the metric.

Parameters:

dimensions - the dimensions value to set.

Returns:

the MetricSpecification object itself.

withDisplayDescription

public MetricSpecification withDisplayDescription(String displayDescription)

Set the displayDescription property: Localized friendly description of the metric.

Parameters:

displayDescription - the displayDescription value to set.

Returns:

the MetricSpecification object itself.

withDisplayName

public MetricSpecification withDisplayName(String displayName)

Set the displayName property: Localized friendly display name of the metric.

Parameters:

displayName - the displayName value to set.

Returns:

the MetricSpecification object itself.

withEnableRegionalMdmAccount

public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)

Set the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.

Parameters:

enableRegionalMdmAccount - the enableRegionalMdmAccount value to set.

Returns:

the MetricSpecification object itself.

withFillGapWithZero

public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)

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.

withInternalMetricName

public MetricSpecification withInternalMetricName(String internalMetricName)

Set the internalMetricName property: Internal metric name.

Parameters:

internalMetricName - the internalMetricName value to set.

Returns:

the MetricSpecification object itself.

withLockedAggregationType

public MetricSpecification withLockedAggregationType(String lockedAggregationType)

Set the lockedAggregationType property: Locked aggregation type of the metric.

Parameters:

lockedAggregationType - the lockedAggregationType value to set.

Returns:

the MetricSpecification object itself.

withMetricFilterPattern

public MetricSpecification withMetricFilterPattern(String metricFilterPattern)

Set the metricFilterPattern property: Metric filter regex pattern.

Parameters:

metricFilterPattern - the metricFilterPattern value to set.

Returns:

the MetricSpecification object itself.

withName

public MetricSpecification withName(String name)

Set the name property: Name of the metric.

Parameters:

name - the name value to set.

Returns:

the MetricSpecification object itself.

withSourceMdmAccount

public MetricSpecification withSourceMdmAccount(String sourceMdmAccount)

Set the sourceMdmAccount property: Source mdm account.

Parameters:

sourceMdmAccount - the sourceMdmAccount value to set.

Returns:

the MetricSpecification object itself.

withSourceMdmNamespace

public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)

Set the sourceMdmNamespace property: Source mdm namespace.

Parameters:

sourceMdmNamespace - the sourceMdmNamespace value to set.

Returns:

the MetricSpecification object itself.

withSupportedAggregationTypes

public MetricSpecification withSupportedAggregationTypes(List supportedAggregationTypes)

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.

withSupportedTimeGrainTypes

public MetricSpecification withSupportedTimeGrainTypes(List supportedTimeGrainTypes)

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.

withUnit

public MetricSpecification withUnit(String unit)

Set the unit property: Unit that makes sense for the metric.

Parameters:

unit - the unit value to set.

Returns:

the MetricSpecification object itself.

Applies to