Skip to main content

percentile_target_metrics

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

Overview

Namepercentile_target_metrics
TypeResource
Idazure.cosmos_db.percentile_target_metrics

Fields

The following fields are returned by SELECT queries:

The percentile metrics for the account and target regions were retrieved successfully.

NameDatatypeDescription
nameobjectThe name information for the metric.
endTimestring (date-time)The end time for the metric (ISO-8601 format).
metricValuesarrayThe percentile metric values for the specified time window and timestep.
startTimestring (date-time)The 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, accountName, targetRegion, $filterRetrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data

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.

NameDatatypeDescription
$filterstringAn OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
accountNamestringCosmos DB database account name.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
targetRegionstringTarget region to which data is written. Cosmos DB region, with spaces between words and each word capitalized.

SELECT examples

Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data

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