MetricSpecification Class
- java.
lang. Object - com.
azure. resourcemanager. mixedreality. models. MetricSpecification
- com.
public final class MetricSpecification
Specifications of the Metrics for Azure Monitoring.
Constructor Summary
Constructor | Description |
---|---|
MetricSpecification() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
aggregationType()
Get the aggregation |
String |
category()
Get the category property: Metric category. |
List<Metric |
dimensions()
Get the dimensions property: Dimensions of the metric. |
String |
displayDescription()
Get the display |
String |
displayName()
Get the display |
Boolean |
enableRegionalMdmAccount()
Get the enable |
Boolean |
fillGapWithZero()
Get the fill |
String |
internalMetricName()
Get the internal |
String |
lockedAggregationType()
Get the locked |
String |
metricFilterPattern()
Get the metric |
String |
name()
Get the name property: Name of the metric. |
String |
sourceMdmAccount()
Get the source |
String |
sourceMdmNamespace()
Get the source |
List<String> |
supportedAggregationTypes()
Get the supported |
List<String> |
supportedTimeGrainTypes()
Get the supported |
String |
unit()
Get the unit property: Unit that makes sense for the metric. |
void |
validate()
Validates the instance. |
Metric |
withAggregationType(String aggregationType)
Set the aggregation |
Metric |
withCategory(String category)
Set the category property: Metric category. |
Metric |
withDimensions(List<MetricDimension> dimensions)
Set the dimensions property: Dimensions of the metric. |
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 |
withInternalMetricName(String internalMetricName)
Set the internal |
Metric |
withLockedAggregationType(String lockedAggregationType)
Set the locked |
Metric |
withMetricFilterPattern(String metricFilterPattern)
Set the metric |
Metric |
withName(String name)
Set the name property: Name of the metric. |
Metric |
withSourceMdmAccount(String sourceMdmAccount)
Set the source |
Metric |
withSourceMdmNamespace(String sourceMdmNamespace)
Set the source |
Metric |
withSupportedAggregationTypes(List<String> supportedAggregationTypes)
Set the supported |
Metric |
withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)
Set the supported |
Metric |
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:
category
public String category()
Get the category property: Metric category.
Returns:
dimensions
public List
Get the dimensions property: Dimensions of the metric.
Returns:
displayDescription
public String displayDescription()
Get the displayDescription property: Localized friendly description of the metric.
Returns:
displayName
public String displayName()
Get the displayName property: Localized friendly display name of the metric.
Returns:
enableRegionalMdmAccount
public Boolean enableRegionalMdmAccount()
Get the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.
Returns:
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: Flag to determine is Zero is returned for time duration where no metric is emitted.
Returns:
internalMetricName
public String internalMetricName()
Get the internalMetricName property: Internal metric name.
Returns:
lockedAggregationType
public String lockedAggregationType()
Get the lockedAggregationType property: Locked aggregation type of the metric.
Returns:
metricFilterPattern
public String metricFilterPattern()
Get the metricFilterPattern property: Metric filter regex pattern.
Returns:
name
public String name()
Get the name property: Name of the metric.
Returns:
sourceMdmAccount
public String sourceMdmAccount()
Get the sourceMdmAccount property: Source mdm account.
Returns:
sourceMdmNamespace
public String sourceMdmNamespace()
Get the sourceMdmNamespace property: Source mdm namespace.
Returns:
supportedAggregationTypes
public List
Get the supportedAggregationTypes property: Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count.
Returns:
supportedTimeGrainTypes
public List
Get the supportedTimeGrainTypes property: Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D.
Returns:
unit
public String unit()
Get the unit property: Unit that makes sense for the metric.
Returns:
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:
Returns:
withCategory
public MetricSpecification withCategory(String category)
Set the category property: Metric category.
Parameters:
Returns:
withDimensions
public MetricSpecification withDimensions(List
Set the dimensions property: Dimensions of the metric.
Parameters:
Returns:
withDisplayDescription
public MetricSpecification withDisplayDescription(String displayDescription)
Set the displayDescription property: Localized friendly description of the metric.
Parameters:
Returns:
withDisplayName
public MetricSpecification withDisplayName(String displayName)
Set the displayName property: Localized friendly display name of the metric.
Parameters:
Returns:
withEnableRegionalMdmAccount
public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)
Set the enableRegionalMdmAccount property: Flag to indicate use of regional Mdm accounts.
Parameters:
Returns:
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:
Returns:
withInternalMetricName
public MetricSpecification withInternalMetricName(String internalMetricName)
Set the internalMetricName property: Internal metric name.
Parameters:
Returns:
withLockedAggregationType
public MetricSpecification withLockedAggregationType(String lockedAggregationType)
Set the lockedAggregationType property: Locked aggregation type of the metric.
Parameters:
Returns:
withMetricFilterPattern
public MetricSpecification withMetricFilterPattern(String metricFilterPattern)
Set the metricFilterPattern property: Metric filter regex pattern.
Parameters:
Returns:
withName
public MetricSpecification withName(String name)
Set the name property: Name of the metric.
Parameters:
Returns:
withSourceMdmAccount
public MetricSpecification withSourceMdmAccount(String sourceMdmAccount)
Set the sourceMdmAccount property: Source mdm account.
Parameters:
Returns:
withSourceMdmNamespace
public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)
Set the sourceMdmNamespace property: Source mdm namespace.
Parameters:
Returns:
withSupportedAggregationTypes
public MetricSpecification withSupportedAggregationTypes(List
Set the supportedAggregationTypes property: Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count.
Parameters:
Returns:
withSupportedTimeGrainTypes
public MetricSpecification withSupportedTimeGrainTypes(List
Set the supportedTimeGrainTypes property: Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D.
Parameters:
Returns:
withUnit
public MetricSpecification withUnit(String unit)
Set the unit property: Unit that makes sense for the metric.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for