Usage Class

The usage data for a usage request.

Inheritance
azure.mgmt.cognitiveservices._serialization.Model
Usage

Constructor

Usage(*, unit: str | _models.UnitType | None = None, name: _models.MetricName | None = None, quota_period: str | None = None, limit: float | None = None, current_value: float | None = None, next_reset_time: str | None = None, status: str | _models.QuotaUsageStatus | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
unit

The unit of the metric. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountPerSecond", "BytesPerSecond", and "Milliseconds".

name

The name information for the metric.

quota_period
str

The quota period used to summarize the usage values.

limit

Maximum value for this metric.

current_value

Current value for this metric.

next_reset_time
str

Next reset time for current quota.

status

Cognitive Services account quota usage status. Known values are: "Included", "Blocked", "InOverage", and "Unknown".

Variables

Name Description
unit

The unit of the metric. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountPerSecond", "BytesPerSecond", and "Milliseconds".

name

The name information for the metric.

quota_period
str

The quota period used to summarize the usage values.

limit

Maximum value for this metric.

current_value

Current value for this metric.

next_reset_time
str

Next reset time for current quota.

status

Cognitive Services account quota usage status. Known values are: "Included", "Blocked", "InOverage", and "Unknown".