DatabaseOperations.ListUsagesAsync(String, String, String, String, CancellationToken) Method

Definition

Retrieves the usages (most recent data) for the given database.

public virtual Azure.AsyncPageable<Azure.ResourceManager.CosmosDB.Models.Usage> ListUsagesAsync (string resourceGroupName, string accountName, string databaseRid, string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListUsagesAsync : string * string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CosmosDB.Models.Usage>
override this.ListUsagesAsync : string * string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CosmosDB.Models.Usage>
Public Overridable Function ListUsagesAsync (resourceGroupName As String, accountName As String, databaseRid As String, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of Usage)

Parameters

resourceGroupName
System.String

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

accountName
System.String

Cosmos DB database account name.

databaseRid
System.String

Cosmos DB database rid.

filter
System.String

An 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
System.Threading.CancellationToken

The cancellation token to use.

Returns

AsyncPageable<Usage>

Exceptions

System.ArgumentNullException

resourceGroupName, accountName, or databaseRid is null.

Applies to