MetricSpecificationV1 Klasa

Specyfikacja metryki w wersji 1.

Dziedziczenie
MetricSpecificationV1

Konstruktor

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

Parametry

name
str
Wymagane

Nazwa metryki.

display_name
str
Wymagane

Nazwa wyświetlana metryki.

display_description
str
Wymagane

Opis metryki do wyświetlenia.

unit
str lub MetricUnit
Wymagane

Jednostki metryk. Możliwe wartości to: "NotSpecified", "Percent", "Count", "Seconds", "Milliseconds", "Bytes", "BytesPerSecond", "CountPerSecond".

aggregation_type
str lub MetricAggregationType
Wymagane

Typ agregacji metryki. Możliwe wartości to: "NotSpecified", "None", "Average", "Minimum", "Maximum", "Total", "Count".

dimensions
list[MetricDimensionV1]
Wymagane

Wymiary metryki, inne niż domyślny wymiar, który jest zasobem.

fill_gap_with_zero
bool
Wymagane

Ustaw wartość true, aby wypełnić luki zerem.

category
str lub MetricCategory
Wymagane

Kategoria metryki. Możliwe wartości to: "Pojemność", "Transakcja".

resource_id_dimension_name_override
str
Wymagane

Przesłoń nazwę zasobu.

supported_time_grain_types
list[str lub TimeGrain]
Wymagane

Obsługa stopnia szczegółowości metryk.

supported_aggregation_types
list[str lub MetricAggregationType]
Wymagane

Obsługa typu agregacji metryk.