MetricSpecificationV1 Class

Metric specification version 1.

Constructor

MetricSpecificationV1(*, name: str | None = None, display_name: str | None = None, display_description: str | None = None, unit: str | _models.MetricUnit | None = None, aggregation_type: str | _models.MetricAggregationType | None = None, dimensions: List[_models.MetricDimensionV1] | None = None, fill_gap_with_zero: bool | None = None, category: str | _models.MetricCategory | None = None, resource_id_dimension_name_override: str | None = None, supported_time_grain_types: List[str | _models.TimeGrain] | None = None, supported_aggregation_types: List[str | _models.MetricAggregationType] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

Name of the metric.

Default value: None
display_name
str

Display name of the metric.

Default value: None
display_description
str

Description of the metric to be displayed.

Default value: None
unit

Metric units. Known values are: "NotSpecified", "Percent", "Count", "Seconds", "Milliseconds", "Bytes", "BytesPerSecond", and "CountPerSecond".

Default value: None
aggregation_type

Metric aggregation type. Known values are: "NotSpecified", "None", "Average", "Minimum", "Maximum", "Total", and "Count".

Default value: None
dimensions

Metric dimensions, other than default dimension which is resource.

Default value: None
fill_gap_with_zero

Set true to fill the gaps with zero.

Default value: None
category

Metric category. Known values are: "Capacity" and "Transaction".

Default value: None
resource_id_dimension_name_override
str

Resource name override.

Default value: None
supported_time_grain_types

Support granularity of metrics.

Default value: None
supported_aggregation_types

Support metric aggregation type.

Default value: None

Variables

Name Description
name
str

Name of the metric.

display_name
str

Display name of the metric.

display_description
str

Description of the metric to be displayed.

unit

Metric units. Known values are: "NotSpecified", "Percent", "Count", "Seconds", "Milliseconds", "Bytes", "BytesPerSecond", and "CountPerSecond".

aggregation_type

Metric aggregation type. Known values are: "NotSpecified", "None", "Average", "Minimum", "Maximum", "Total", and "Count".

dimensions

Metric dimensions, other than default dimension which is resource.

fill_gap_with_zero

Set true to fill the gaps with zero.

category

Metric category. Known values are: "Capacity" and "Transaction".

resource_id_dimension_name_override
str

Resource name override.

supported_time_grain_types

Support granularity of metrics.

supported_aggregation_types

Support metric aggregation type.