Skip to main content

database_accounts_metric_definitions

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

Overview

Namedatabase_accounts_metric_definitions
TypeResource
Idazure.cosmos_db.database_accounts_metric_definitions

Fields

NameDatatypeDescription
nameobjectA metric name.
metricAvailabilitiesarrayThe list of metric availabilities for the account.
primaryAggregationTypestringThe primary aggregation type of the metric.
resourceUristringThe resource uri of the database.
unitstringThe unit of the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECTaccountName, resourceGroupName, subscriptionIdRetrieves 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 }}';