Skip to main content

collection_partition_usages

Creates, updates, deletes, gets or lists a collection_partition_usages resource.

Overview

Namecollection_partition_usages
TypeResource
Idazure.cosmos_db.collection_partition_usages

Fields

NameDatatypeDescription
nameobjectA metric name.
currentValueintegerCurrent value for this metric
limitintegerMaximum value for this metric
partitionIdstringThe partition id (GUID identifier) of the usages.
partitionKeyRangeIdstringThe partition key range id (integer identifier) of the usages.
quotaPeriodstringThe quota period used to summarize the usage values.
unitstringThe unit of the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECTaccountName, collectionRid, databaseRid, resourceGroupName, subscriptionIdRetrieves the usages (most recent storage data) for the given collection, split by partition.

SELECT examples

Retrieves the usages (most recent storage data) for the given collection, split by partition.

SELECT
name,
currentValue,
limit,
partitionId,
partitionKeyRangeId,
quotaPeriod,
unit
FROM azure.cosmos_db.collection_partition_usages
WHERE accountName = '{{ accountName }}'
AND collectionRid = '{{ collectionRid }}'
AND databaseRid = '{{ databaseRid }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';