database_accounts_usages
Creates, updates, deletes, gets or lists a database_accounts_usages
resource.
Overview
Name | database_accounts_usages |
Type | Resource |
Id | azure.cosmos_db.database_accounts_usages |
Fields
Name | Datatype | Description |
---|---|---|
name | object | A metric name. |
currentValue | integer | Current value for this metric |
limit | integer | Maximum value for this metric |
quotaPeriod | string | The quota period used to summarize the usage values. |
unit | string | The unit of the metric. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | accountName, resourceGroupName, subscriptionId | Retrieves the usages (most recent data) for the given database account. |
SELECT
examples
Retrieves the usages (most recent data) for the given database account.
SELECT
name,
currentValue,
limit,
quotaPeriod,
unit
FROM azure.cosmos_db.database_accounts_usages
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';