database_accounts_metric_definitions
Creates, updates, deletes, gets or lists a database_accounts_metric_definitions
resource.
Overview
Name | database_accounts_metric_definitions |
Type | Resource |
Id | azure.cosmos_db.database_accounts_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, resourceGroupName, subscriptionId | Retrieves metric definitions for the given database account. |
SELECT
examples
Retrieves metric definitions for the given database account.
SELECT
name,
metricAvailabilities,
primaryAggregationType,
resourceUri,
unit
FROM azure.cosmos_db.database_accounts_metric_definitions
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';