collection_metric_definitions
Creates, updates, deletes, gets or lists a collection_metric_definitions
resource.
Overview
Name | collection_metric_definitions |
Type | Resource |
Id | azure.cosmos_db.collection_metric_definitions |
Fields
Name | Datatype | Description |
---|---|---|
name | object | A metric name. |
metricAvailabilities | array | The list of metric availabilities for the account. |
primaryAggregationType | string | The primary aggregation type of the metric. |
resourceUri | string | The resource uri of the database. |
unit | string | The unit of the metric. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | accountName, collectionRid, databaseRid, resourceGroupName, subscriptionId | Retrieves metric definitions for the given collection. |
SELECT
examples
Retrieves metric definitions for the given collection.
SELECT
name,
metricAvailabilities,
primaryAggregationType,
resourceUri,
unit
FROM azure.cosmos_db.collection_metric_definitions
WHERE accountName = '{{ accountName }}'
AND collectionRid = '{{ collectionRid }}'
AND databaseRid = '{{ databaseRid }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';