CollectionPartition interface

Interface representing a CollectionPartition.

Methods

listMetrics(string, string, string, string, string, CollectionPartitionListMetricsOptionalParams)

Retrieves the metrics determined by the given filter for the given collection, split by partition.

listUsages(string, string, string, string, CollectionPartitionListUsagesOptionalParams)

Retrieves the usages (most recent storage data) for the given collection, split by partition.

Method Details

listMetrics(string, string, string, string, string, CollectionPartitionListMetricsOptionalParams)

Retrieves the metrics determined by the given filter for the given collection, split by partition.

function listMetrics(resourceGroupName: string, accountName: string, databaseRid: string, collectionRid: string, filter: string, options?: CollectionPartitionListMetricsOptionalParams): 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.

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
CollectionPartitionListMetricsOptionalParams

The options parameters.

Returns

listUsages(string, string, string, string, CollectionPartitionListUsagesOptionalParams)

Retrieves the usages (most recent storage data) for the given collection, split by partition.

function listUsages(resourceGroupName: string, accountName: string, databaseRid: string, collectionRid: string, options?: CollectionPartitionListUsagesOptionalParams): PagedAsyncIterableIterator<PartitionUsage, PartitionUsage[], 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.

options
CollectionPartitionListUsagesOptionalParams

The options parameters.

Returns