次の方法で共有


ManagedDatabaseResource.GetQueryStatisticsAsync メソッド

定義

クエリ ID でクエリ実行統計を取得します。

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/queries/{queryId}/statistics
  • 操作IdManagedDatabaseQueries_ListByQuery
public virtual Azure.AsyncPageable<Azure.ResourceManager.Sql.Models.QueryStatistics> GetQueryStatisticsAsync (string queryId, string startTime = default, string endTime = default, Azure.ResourceManager.Sql.Models.QueryTimeGrainType? interval = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetQueryStatisticsAsync : string * string * string * Nullable<Azure.ResourceManager.Sql.Models.QueryTimeGrainType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.Models.QueryStatistics>
override this.GetQueryStatisticsAsync : string * string * string * Nullable<Azure.ResourceManager.Sql.Models.QueryTimeGrainType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.Models.QueryStatistics>
Public Overridable Function GetQueryStatisticsAsync (queryId As String, Optional startTime As String = Nothing, Optional endTime As String = Nothing, Optional interval As Nullable(Of QueryTimeGrainType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of QueryStatistics)

パラメーター

queryId
String

使用する文字列。

startTime
String

観測された期間の開始時刻。

endTime
String

観測された期間の終了時刻。

interval
Nullable<QueryTimeGrainType>

メトリック値の集計に使用する時間ステップ。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

反復処理するために複数の QueryStatistics サービス要求を受け取る可能性がある の非同期コレクション。

例外

queryId は空の文字列であり、空でないと想定されていました。

queryId が null です。

適用対象