Table of Contents

Class PartitionKeyRangeIdRegionOperationsExtensions

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

Extension methods for PartitionKeyRangeIdRegionOperations.

public static class PartitionKeyRangeIdRegionOperationsExtensions
Inheritance
PartitionKeyRangeIdRegionOperationsExtensions
Inherited Members

Methods

ListMetricsAsync(IPartitionKeyRangeIdRegionOperations, string, string, string, string, string, string, string, CancellationToken)

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

public static Task<IEnumerable<PartitionMetric>> ListMetricsAsync(this IPartitionKeyRangeIdRegionOperations operations, string resourceGroupName, string accountName, string region, string databaseRid, string collectionRid, string partitionKeyRangeId, string filter, CancellationToken cancellationToken = default)

Parameters

operations IPartitionKeyRangeIdRegionOperations

The operations group for this extension method.

resourceGroupName string

Name of an Azure resource group.

accountName string

Cosmos DB database account name.

region string

Cosmos DB region, with spaces between words and each word capitalized.

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.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IEnumerable<PartitionMetric>>