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
The following fields are returned by SELECT
queries:
- list
The metric definitions for the database account were retrieved successfully.
Name | Datatype | Description |
---|---|---|
name | object | The name information for the metric. |
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
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | subscriptionId , resourceGroupName , accountName | Retrieves metric definitions for the given database account. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
accountName | string | Cosmos DB database account name. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
SELECT
examples
- list
Retrieves metric definitions for the given database account.
SELECT
name,
metricAvailabilities,
primaryAggregationType,
resourceUri,
unit
FROM azure.cosmos_db.database_accounts_metric_definitions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;