Skip to main content

partition_key_range_id_metrics

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

Overview

Namepartition_key_range_id_metrics
TypeResource
Idazure.cosmos_db.partition_key_range_id_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.
partitionIdstringThe partition id (GUID identifier) of the metric values.
partitionKeyRangeIdstringThe partition key range id (integer identifier) of the metric values.
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, collectionRid, databaseRid, partitionKeyRangeId, resourceGroupName, subscriptionIdRetrieves the metrics determined by the given filter for the given partition key range id.

SELECT examples

Retrieves the metrics determined by the given filter for the given partition key range id.

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