DescribeProcessStatsComposition
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
oceanbase:DescribeProcessStatsComposition |
get |
*Instance
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| InstanceId |
string |
必須 |
OceanBase クラスターの ID です。 |
ob******** |
| UId |
string |
任意 |
ユーザーアカウントの識別子 (UID) です。 |
139************* |
| TenantId |
string |
任意 |
テナントの ID です。 |
t******** |
| SqlText |
string |
任意 |
SQL ステートメント。LIKE 句を含めることができます。SQL ステートメント内の一部の句のみを指定することもできます。 |
SELECT **** FROM **** WHERE **** = ? AND **** = ? ORDER BY **** ASC |
| ClientIp |
string |
任意 |
クライアントの IP アドレスです。 |
127.*.*.* |
| ServerIp |
string |
任意 |
サーバーの IP アドレスです。 |
127.*.*.* |
| Users |
string |
任意 |
データベースのユーザー名のリストです。JSON 配列形式の文字列で指定します。 |
["test_user"] |
| Status |
string |
任意 |
セッションのステータスです。 |
ACTIVE |
| MergeDynamicSql |
boolean |
任意 |
戻り値で動的 SQL をマージするかどうかを指定します。 説明
|
false |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
リクエストのレスポンス。 |
||
| RequestId |
string |
リクエスト ID。 |
EE205C00-30E4-****-****-87E3A8A2AA0C |
| Data |
object |
返されるデータ。 |
|
| TotalSessionCount |
integer |
セッションの総数。 |
100 |
| ActiveSessionCount |
integer |
アクティブセッションの数。 |
60 |
| IdleSessionCount |
integer |
SLEEP 状態のセッション数。 |
30 |
| AllProcessList |
array<object> |
すべてのセッションの詳細。 |
|
|
array<object> |
すべてのセッションの詳細。 |
||
| SqlText |
string |
SQL テキスト。 |
select * from c1 where id = 100; |
| TenantId |
string |
テナント ID。 |
t******** |
| Database |
string |
データベース名。 |
c1 |
| User |
string |
セッションのユーザー。 |
test_user |
| ExecuteTime |
integer |
このパラメーターは、SQL 文の実行状況によって示す内容が異なります。
|
5 |
| CpuTime |
integer |
現在の SQL 文の実行にかかった CPU 時間 (秒)。 説明
このパラメーターは、バージョン V3.2.4 BP5 以降で利用可能です。 |
1 |
| ServerIp |
string |
サーバーの IP アドレス。 |
xx.xx.xx.xx |
| ClientIp |
string |
クライアントの IP アドレス。 |
xx.xx.xx.xx |
| SessionId |
integer |
セッション ID。 |
322441**** |
| ProxySessId |
string |
クライアントのセッション ID です。OceanBase Database Proxy (ODP) 経由で接続している場合は、ODP のセッション ID を返します。 |
7521015416******** |
| Command |
string |
セッションで実行中の SQL ステートメントのタイプ。 |
Query |
| Status |
string |
セッションのステータス。 |
ACTIVE |
| SqlId |
string |
SQL ステートメントの ID。 |
45CCBDC7DEBDCDAXXXXAFC******** |
| TraceId |
string |
トレース ID。 |
YB420XXX128-00062XXXX8313XXX1-X-X |
| PlanId |
integer |
実行計画 ID。 |
1898 |
| DynamicSql |
boolean |
SQL が動的 SQL であるかどうかを示します。 |
false |
| ProcessSqlLists |
array<object> |
サブ SQL のリスト。 |
|
|
array<object> |
|||
| SqlText |
string |
SQL テキスト。 |
select * from c1 where id = 100; |
| TenantId |
string |
テナント ID。 |
t******** |
| Database |
string |
データベース名。 |
c2 |
| User |
string |
セッションのユーザー。 |
test_user |
| ExecuteTime |
integer |
このパラメーターは、コマンドの実行状況によって示す内容が異なります。
|
5 |
| CpuTime |
integer |
現在のコマンド実行にかかった CPU 時間 (秒)。 説明
このパラメーターは、バージョン V3.2.4 BP5 以降で利用可能です。 |
1 |
| ServerIp |
string |
サーバーの IP アドレス。 |
xx.xx.xx.xx |
| ClientIp |
string |
クライアントの IP アドレス。 |
xx.xx.xx.xx |
| SessionId |
integer |
セッション ID。 |
322441**** |
| ProxySessId |
string |
クライアントが ODP の場合、ODP のセッション ID を返します。 |
7521015416******** |
| Command |
string |
セッションが実行しているコマンド。 |
Query |
| Status |
string |
セッションの現在のステータス。 |
ACTIVE |
| SqlId |
string |
SQL ID。 |
45CCBDC7DEBDCDAXXXXAFC******** |
| TraceId |
string |
トレース ID。 |
YB420XXX128-00062XXXX8313XXX1-X-X |
| PlanId |
integer |
実行計画 ID。 |
1898 |
| DynamicSql |
boolean |
SQL が動的 SQL であるかどうかを示します。 |
false |
| ProcessSqlList |
array<object> |
サブ SQL のリスト。 |
|
|
object |
|||
| SqlText |
string |
SQL テキスト。 |
select * from c1 where id = 100; |
| TenantId |
string |
テナント ID。 |
t******** |
| Database |
string |
データベース名。 |
c3 |
| User |
string |
セッションのユーザー。 |
test_user |
| ExecuteTime |
integer |
このパラメーターは、コマンドの実行状況によって示す内容が異なります。
|
5 |
| CpuTime |
integer |
現在のコマンド実行にかかった CPU 時間 (秒)。 説明
このパラメーターは、バージョン V3.2.4 BP5 以降で利用可能です。 |
1 |
| ServerIp |
string |
サーバーの IP アドレス。 |
xx.xx.xx.xx |
| ClientIp |
string |
クライアントの IP アドレス。 |
xx.xx.xx.xx |
| SessionId |
integer |
セッション ID。 |
322441**** |
| ProxySessId |
string |
クライアントが ODP の場合、ODP のセッション ID を返します。 |
7521015416******** |
| Command |
string |
セッションが実行しているコマンド。 |
Query |
| Status |
string |
セッションの現在のステータス。 |
ACTIVE |
| SqlId |
string |
SQL ID。 |
45CCBDC7DEBDCDAXXXXAFC******** |
| TraceId |
string |
トレース ID。 |
YB420XXX128-00062XXXX8313XXX1-X-X |
| PlanId |
integer |
実行計画 ID。 |
1898 |
| DynamicSql |
boolean |
SQL が動的 SQL であるかどうかを示します。 |
false |
| ServerSn |
string |
サーバーの ID。 |
i-bp1*****sw64dhb***** |
| SessionStatistics |
object |
ディメンション別のセッションデータ。 |
|
| UserStatistics |
array<object> |
ユーザー別のセッションデータ。 |
|
|
object |
ユーザー別のセッションデータ。 |
||
| MetricValue |
string |
ユーザー名。 |
test_user |
| ActiveCount |
integer |
アクティブセッションの数。 |
25 |
| TotalCount |
integer |
返されたエントリの総数。 |
30 |
| Type |
string |
ディメンション。固定値は |
user |
| SourceStatistics |
array<object> |
クライアント別のセッションデータ。 |
|
|
object |
クライアント別のセッションデータ。 |
||
| MetricValue |
string |
クライアントの IP アドレス。 |
xx.xx.xx.xx |
| ActiveCount |
integer |
アクティブセッションの数。 |
25 |
| TotalCount |
integer |
返されたエントリの総数。 |
30 |
| Type |
string |
ディメンション。固定値は |
client |
| DataBaseStatistics |
array<object> |
データベース別のセッションデータ。 |
|
|
object |
データベース別のセッションデータ。 |
||
| MetricValue |
string |
データベース名。 |
test_database |
| ActiveCount |
integer |
アクティブセッションの数。 |
25 |
| TotalCount |
integer |
返されたエントリの総数。 |
30 |
| Type |
string |
ディメンション。固定値は |
database |
| ObVersion |
string |
OceanBase Database のバージョン。 |
3.2.4 |
例
成功レスポンス
JSONJSON
{
"RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C",
"Data": {
"TotalSessionCount": 100,
"ActiveSessionCount": 60,
"IdleSessionCount": 30,
"AllProcessList": [
{
"SqlText": "select * from c1 where id = 100;",
"TenantId": "t********",
"Database": "c1",
"User": "test_user",
"ExecuteTime": 5,
"CpuTime": 1,
"ServerIp": "xx.xx.xx.xx",
"ClientIp": "xx.xx.xx.xx",
"SessionId": 0,
"ProxySessId": "7521015416********",
"Command": "Query",
"Status": "ACTIVE",
"SqlId": "45CCBDC7DEBDCDAXXXXAFC********",
"TraceId": "YB420XXX128-00062XXXX8313XXX1-X-X",
"PlanId": 1898,
"DynamicSql": false,
"ProcessSqlLists": [
{
"SqlText": "select * from c1 where id = 100;",
"TenantId": "t********",
"Database": "c2",
"User": "test_user",
"ExecuteTime": 5,
"CpuTime": 1,
"ServerIp": "xx.xx.xx.xx",
"ClientIp": "xx.xx.xx.xx",
"SessionId": 0,
"ProxySessId": "7521015416********",
"Command": "Query",
"Status": "ACTIVE",
"SqlId": "45CCBDC7DEBDCDAXXXXAFC********",
"TraceId": "YB420XXX128-00062XXXX8313XXX1-X-X",
"PlanId": 1898,
"DynamicSql": false,
"ProcessSqlList": [
{
"SqlText": "select * from c1 where id = 100;",
"TenantId": "t********",
"Database": "c3",
"User": "test_user",
"ExecuteTime": 5,
"CpuTime": 1,
"ServerIp": "xx.xx.xx.xx",
"ClientIp": "xx.xx.xx.xx",
"SessionId": 0,
"ProxySessId": "7521015416********",
"Command": "Query",
"Status": "ACTIVE",
"SqlId": "45CCBDC7DEBDCDAXXXXAFC********\n",
"TraceId": "YB420XXX128-00062XXXX8313XXX1-X-X",
"PlanId": 1898,
"DynamicSql": false
}
]
}
],
"ServerSn": "i-bp1*****sw64dhb*****"
}
],
"SessionStatistics": {
"UserStatistics": [
{
"MetricValue": "test_user",
"ActiveCount": 25,
"TotalCount": 30,
"Type": "user"
}
],
"SourceStatistics": [
{
"MetricValue": "xx.xx.xx.xx",
"ActiveCount": 25,
"TotalCount": 30,
"Type": "client"
}
],
"DataBaseStatistics": [
{
"MetricValue": "test_database",
"ActiveCount": 25,
"TotalCount": 30,
"Type": "database"
}
]
},
"ObVersion": "3.2.4"
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。