クラスターのスローログトレンドに関する統計情報を照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
clickhouse:DescribeSlowLogTrend |
get |
*DBCluster
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
リージョン ID。 DescribeRegions 操作を呼び出してリージョン ID をクエリできます。 |
cn-hangzhou |
| DBClusterId |
string |
必須 |
クラスター ID。 DescribeDBClusters 操作を呼び出して、特定のリージョン内のすべてのクラスターの情報(クラスター ID を含む)をクエリできます。 |
cc-bp11xxl475ui8**** |
| StartTime |
string |
必須 |
クエリする時間範囲の開始時刻。 |
2022-05-20 16:00:00 |
| EndTime |
string |
必須 |
クエリする時間範囲の終了時刻。 説明
終了時刻は開始時刻より後である必要があります。時間範囲は 7 日間を超えることはできません。 |
2022-05-27 16:00:00 |
| QueryDurationMs |
integer |
任意 |
スロー SQL クエリの実行時間(ミリ秒単位)。最小値は 1000 です。デフォルト値は 1000 です。この操作は、この持続時間を超えて実行するスロー SQL クエリを返します。 |
1000 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
The request ID. |
7D3ECB0E-98CA-5E08-A9CA-F70C5A1E9BDF |
| SlowLogTrend |
object |
The result set of the slow SQL queries. |
|
| TableSchema |
object |
||
| ResultSet |
array<object> |
||
|
object |
|||
| Type |
string |
UInt64 |
|
| Name |
string |
query_start_time |
|
| Data |
object |
||
| ResultSet |
array<object> |
||
|
object |
|||
| QueryStartTime |
string |
2022-05-22 20:00:01 |
|
| MaxQueryDurationMs |
string |
3000 |
|
| MinQueryDurationMs |
string |
1000 |
|
| Count |
string |
4000 |
|
| AvgQueryDurationMs |
string |
2000 |
|
| Rows |
string |
The number of rows in the result set. |
1 |
| RowsBeforeLimitAtLeast |
string |
The minimum number of rows that are returned before the `LIMIT` clause is applied. |
1 |
| Statistics |
object |
The statistics of the query results. |
|
| RowsRead |
integer |
14721 |
|
| ElapsedTime |
number |
0.001703578 |
|
| BytesRead |
integer |
697899 |
例
成功レスポンス
JSONJSON
{
"RequestId": "7D3ECB0E-98CA-5E08-A9CA-F70C5A1E9BDF",
"SlowLogTrend": {
"TableSchema": {
"ResultSet": [
{
"Type": "UInt64",
"Name": "query_start_time"
}
]
},
"Data": {
"ResultSet": [
{
"QueryStartTime": "2022-05-22 20:00:01",
"MaxQueryDurationMs": "3000",
"MinQueryDurationMs": "1000",
"Count": "4000",
"AvgQueryDurationMs": "2000"
}
]
},
"Rows": "1",
"RowsBeforeLimitAtLeast": "1",
"Statistics": {
"RowsRead": 14721,
"ElapsedTime": 0.001703578,
"BytesRead": 697899
}
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
| 503 | ServiceUnavailable | An error occurred while processing your request. | An error occurred while processing your request. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。