次の方法で共有


ICollectionPartitionRegionOperations.ListMetricsWithHttpMessagesAsync メソッド

定義

特定のコレクションとリージョンの特定のフィルターによって決定されたメトリックを、パーティション別に分割して取得します。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.CosmosDB.Models.PartitionMetric>>> ListMetricsWithHttpMessagesAsync (string resourceGroupName, string accountName, string region, string databaseRid, string collectionRid, string filter, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListMetricsWithHttpMessagesAsync : string * string * string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<seq<Microsoft.Azure.Management.CosmosDB.Models.PartitionMetric>>>
Public Function ListMetricsWithHttpMessagesAsync (resourceGroupName As String, accountName As String, region As String, databaseRid As String, collectionRid As String, filter As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IEnumerable(Of PartitionMetric)))

パラメーター

resourceGroupName
String

リソース グループの名前。 名前の大文字と小文字は区別されます。

accountName
String

Cosmos DB データベース アカウント名。

region
String

Cosmos DB リージョン。単語と各単語の間にスペースが大文字で表示されます。

databaseRid
String

Cosmos DB データベースの削除。

collectionRid
String

Cosmos DB コレクションの削除。

filter
String

返されるメトリックのサブセットを記述する OData フィルター式。 フィルター処理できるパラメーターは、name.value (メトリックの名前、または複数の名前を持つことができます)、startTime、endTime、timeGrain です。 サポートされている演算子は eq です。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

操作が無効な状態コードを返したときにスローされます

応答を逆シリアル化できない場合にスローされます

必須パラメーターが null の場合にスローされます

適用対象