Class CollectionPartitionOperationsExtensions
- Namespace
- Microsoft.Azure.Management.CosmosDB.Fluent
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
Extension methods for CollectionPartitionOperations.
public static class CollectionPartitionOperationsExtensions
- Inheritance
-
CollectionPartitionOperationsExtensions
- Inherited Members
Methods
ListMetricsAsync(ICollectionPartitionOperations, string, string, string, string, string, CancellationToken)
Retrieves the metrics determined by the given filter for the given collection, split by partition.
public static Task<IEnumerable<PartitionMetric>> ListMetricsAsync(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter, CancellationToken cancellationToken = default)
Parameters
operations
ICollectionPartitionOperationsThe operations group for this extension method.
resourceGroupName
stringName of an Azure resource group.
accountName
stringCosmos DB database account name.
databaseRid
stringCosmos DB database rid.
collectionRid
stringCosmos DB collection rid.
filter
stringAn 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
CancellationTokenThe cancellation token.
Returns
ListUsagesAsync(ICollectionPartitionOperations, string, string, string, string, string, CancellationToken)
Retrieves the usages (most recent storage data) for the given collection, split by partition.
public static Task<IEnumerable<PartitionUsage>> ListUsagesAsync(this ICollectionPartitionOperations operations, string resourceGroupName, string accountName, string databaseRid, string collectionRid, string filter = null, CancellationToken cancellationToken = default)
Parameters
operations
ICollectionPartitionOperationsThe operations group for this extension method.
resourceGroupName
stringName of an Azure resource group.
accountName
stringCosmos DB database account name.
databaseRid
stringCosmos DB database rid.
collectionRid
stringCosmos DB collection rid.
filter
stringAn OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
cancellationToken
CancellationTokenThe cancellation token.