Skip to main content

database_usages

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

Overview

Namedatabase_usages
TypeResource
Idazure.cosmos_db.database_usages

Fields

NameDatatypeDescription
nameobjectA metric name.
currentValueintegerCurrent value for this metric
limitintegerMaximum value for this metric
quotaPeriodstringThe quota period used to summarize the usage values.
unitstringThe unit of the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECTaccountName, databaseRid, resourceGroupName, subscriptionIdRetrieves the usages (most recent data) for the given database.

SELECT examples

Retrieves the usages (most recent data) for the given database.

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