MetricSpecification Class
- java.
lang. Object - com.
azure. resourcemanager. avs. 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: Name of the metric category that the metric belongs to. |
List<Metric |
dimensions()
Get the dimensions property: Dimensions of the metric. |
String |
displayDescription()
Get the display |
String |
displayName()
Get the display |
String |
enableRegionalMdmAccount()
Get the enable |
Boolean |
fillGapWithZero()
Get the fill |
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: Name of the metric category that the metric belongs to. |
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(String enableRegionalMdmAccount)
Set the enable |
Metric |
withFillGapWithZero(Boolean fillGapWithZero)
Set the fill |
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: Name of the metric category that the metric belongs to. A metric can only belong to a single 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 String enableRegionalMdmAccount()
Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.
Returns:
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.
Returns:
name
public String name()
Get the name property: Name of the metric.
Returns:
sourceMdmAccount
public String sourceMdmAccount()
Get the sourceMdmAccount property: The name of the MDM account.
Returns:
sourceMdmNamespace
public String sourceMdmNamespace()
Get the sourceMdmNamespace property: The name of the MDM namespace.
Returns:
supportedAggregationTypes
public List
Get the supportedAggregationTypes property: Supported aggregation types.
Returns:
supportedTimeGrainTypes
public List
Get the supportedTimeGrainTypes property: Supported time grain types.
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: Name of the metric category that the metric belongs to. A metric can only belong to a single 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(String enableRegionalMdmAccount)
Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.
Parameters:
Returns:
withFillGapWithZero
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.
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: The name of the MDM account.
Parameters:
Returns:
withSourceMdmNamespace
public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)
Set the sourceMdmNamespace property: The name of the MDM namespace.
Parameters:
Returns:
withSupportedAggregationTypes
public MetricSpecification withSupportedAggregationTypes(List
Set the supportedAggregationTypes property: Supported aggregation types.
Parameters:
Returns:
withSupportedTimeGrainTypes
public MetricSpecification withSupportedTimeGrainTypes(List
Set the supportedTimeGrainTypes property: Supported time grain types.
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