Usage Class
The usage data for a usage request.
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". Default value: None
|
|
name
|
The name information for the metric. Default value: None
|
|
quota_period
|
The quota period used to summarize the usage values. Default value: None
|
|
limit
|
Maximum value for this metric. Default value: None
|
|
current_value
|
Current value for this metric. Default value: None
|
|
next_reset_time
|
Next reset time for current quota. Default value: None
|
|
status
|
Cognitive Services account quota usage status. Known values are: "Included", "Blocked", "InOverage", and "Unknown". Default value: None
|
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
|
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
|
Next reset time for current quota. |
|
status
|
Cognitive Services account quota usage status. Known values are: "Included", "Blocked", "InOverage", and "Unknown". |