共用方式為


PartitionKeyRangeId interface

Interface representing a PartitionKeyRangeId.

Methods

listMetrics(string, string, string, string, string, string, PartitionKeyRangeIdListMetricsOptionalParams)

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

Method Details

listMetrics(string, string, string, string, string, string, PartitionKeyRangeIdListMetricsOptionalParams)

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

function listMetrics(resourceGroupName: string, accountName: string, databaseRid: string, collectionRid: string, partitionKeyRangeId: string, filter: string, options?: PartitionKeyRangeIdListMetricsOptionalParams): PagedAsyncIterableIterator<PartitionMetric, PartitionMetric[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

databaseRid

string

Cosmos DB database rid.

collectionRid

string

Cosmos DB collection rid.

partitionKeyRangeId

string

Partition Key Range Id for which to get data.

filter

string

An 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.

options
PartitionKeyRangeIdListMetricsOptionalParams

The options parameters.

Returns