MetricDefinition Class

A database metric definition.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
MetricDefinition

Constructor

MetricDefinition(**kwargs)

Variables

name
MetricName

The name information for the metric.

primary_aggregation_type
str or PrimaryAggregationType

The primary aggregation type defining how metric values are displayed. Possible values include: "None", "Average", "Count", "Minimum", "Maximum", "Total".

resource_uri
str

The resource uri of the database.

unit
str or UnitDefinitionType

The unit of the metric. Possible values include: "Count", "Bytes", "Seconds", "Percent", "CountPerSecond", "BytesPerSecond".

metric_availabilities
list[MetricAvailability]

The list of database metric availabilities for the metric.