Skip to main content

database_metrics

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

Overview

Namedatabase_metrics
TypeResource
Idazure.cosmos_db.database_metrics

Fields

NameDatatypeDescription
nameobjectA metric name.
endTimestringThe end time for the metric (ISO-8601 format).
metricValuesarrayThe metric values for the specified time window and timestep.
startTimestringThe start time for the metric (ISO-8601 format).
timeGrainstringThe time grain to be used to summarize the metric values.
unitstringThe unit of the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECT$filter, accountName, databaseRid, resourceGroupName, subscriptionIdRetrieves the metrics determined by the given filter for the given database account and database.

SELECT examples

Retrieves the metrics determined by the given filter for the given database account and database.

SELECT
name,
endTime,
metricValues,
startTime,
timeGrain,
unit
FROM azure.cosmos_db.database_metrics
WHERE $filter = '{{ $filter }}'
AND accountName = '{{ accountName }}'
AND databaseRid = '{{ databaseRid }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';