collection_usages
Creates, updates, deletes, gets or lists a collection_usages
resource.
Overview
Name | collection_usages |
Type | Resource |
Id | azure.cosmos_db.collection_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, collectionRid, databaseRid, resourceGroupName, subscriptionId | Retrieves the usages (most recent storage data) for the given collection. |
SELECT
examples
Retrieves the usages (most recent storage data) for the given collection.
SELECT
name,
currentValue,
limit,
quotaPeriod,
unit
FROM azure.cosmos_db.collection_usages
WHERE accountName = '{{ accountName }}'
AND collectionRid = '{{ collectionRid }}'
AND databaseRid = '{{ databaseRid }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';