Interface IPartitionKeyRangeIdOperations
- Namespace
- Microsoft.Azure.Management.CosmosDB.Fluent
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
PartitionKeyRangeIdOperations operations.
public interface IPartitionKeyRangeIdOperations
- Extension Methods
Methods
ListMetricsWithHttpMessagesAsync(string, string, string, string, string, string, Dictionary<string, List<string>>, CancellationToken)
Retrieves the metrics determined by the given filter for the given partition key range id.
Task<AzureOperationResponse<IEnumerable<PartitionMetric>>> ListMetricsWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseRid, string collectionRid, string partitionKeyRangeId, string filter, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default)
Parameters
resourceGroupName
stringName of an Azure resource group.
accountName
stringCosmos DB database account name.
databaseRid
stringCosmos DB database rid.
collectionRid
stringCosmos DB collection rid.
partitionKeyRangeId
stringPartition Key Range Id for which to get data.
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.
customHeaders
Dictionary<string, List<string>>The headers that will be added to request.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<AzureOperationResponse<IEnumerable<PartitionMetric>>>
Exceptions
- Microsoft.Rest.Azure.CloudException
Thrown when the operation returned an invalid status code
- Microsoft.Rest.SerializationException
Thrown when unable to deserialize the response
- Microsoft.Rest.ValidationException
Thrown when a required parameter is null