MetricSpecification Class

Specifications of the Metrics for Azure Monitoring.

Inheritance
MetricSpecification

Constructor

MetricSpecification(*, name: Optional[str] = None, display_name: Optional[str] = None, display_description: Optional[str] = None, unit: Optional[str] = None, category: Optional[str] = None, aggregation_type: Optional[str] = None, supported_aggregation_types: Optional[List[str]] = None, supported_time_grain_types: Optional[List[str]] = None, fill_gap_with_zero: Optional[bool] = None, dimensions: Optional[List[azure.mgmt.avs.models._models_py3.MetricDimension]] = None, enable_regional_mdm_account: Optional[str] = None, source_mdm_account: Optional[str] = None, source_mdm_namespace: Optional[str] = None, **kwargs)

Parameters

name
str
Required

Name of the metric.

display_name
str
Required

Localized friendly display name of the metric.

display_description
str
Required

Localized friendly description of the metric.

unit
str
Required

Unit that makes sense for the metric.

category
str
Required

Name of the metric category that the metric belongs to. A metric can only belong to a single category.

aggregation_type
str
Required

Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.

supported_aggregation_types
list[str]
Required

Supported aggregation types.

supported_time_grain_types
list[str]
Required

Supported time grain types.

fill_gap_with_zero
bool
Required

Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.

dimensions
list[MetricDimension]
Required

Dimensions of the metric.

enable_regional_mdm_account
str
Required

Whether or not the service is using regional MDM accounts.

source_mdm_account
str
Required

The name of the MDM account.

source_mdm_namespace
str
Required

The name of the MDM namespace.