Viewing SQL Execution Operator Monitoring Records
Function
This API is used to view SQL execution operator monitoring records.
This API is synchronous. There are no accompanying APIs or specific scenarios.
Calling Method
For details, see Calling APIs.
URI
GET /v2/workspaces/{workspace_id}/aura-sessions/{session_id}/statements/{statement_id}/operator-metrics
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| workspace_id | Yes | String | Definition: Workspace ID. For details about how to obtain the workspace ID, see Obtaining a Workspace ID. Constraints: N/A Range: 1 to 36 characters. Only letters, digits, and hyphens (-) are allowed. Default Value: N/A |
| session_id | Yes | String | Definition: Session ID. You can obtain the session ID by calling the Listing Sessions API. Constraints: N/A Range: 1 to 36 characters. Only letters, digits, and hyphens (-) are allowed. Default Value: N/A |
| statement_id | Yes | String | Definition: Statement ID, which can be obtained by calling the Viewing SQL Execution Records Under a Specified Session API. Constraints: N/A Range: 1 to 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. Default Value: N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Definition: User token. It is obtained by calling the Obtaining an IAM User Token API. Constraints: N/A Range: N/A Default Value: N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| [items] | Array of AuraStatementOperatorMetrics objects | Definition: Aura operator monitoring response structure. |
| Parameter | Type | Description |
|---|---|---|
| session_id | String | Definition: Session ID. Range: 1 to 36 characters. Only letters, digits, and hyphens (-) are allowed. |
| endpoint_id | String | Definition: Endpoint ID. Range: 1 to 36 characters. Only letters, digits, and hyphens (-) are allowed. |
| endpoint_name | String | Definition: Endpoint name. Range: 1 to 128 characters. Only letters, digits, periods (.), underscores (_), hyphens (-), and spaces are allowed. |
| operator_metrics | Array of OperatorMetric objects | Definition: Operator monitoring information. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| query_id | Long | Definition: Query ID. Range: 1 to 9223372036854775807. |
| plan_node_id | Integer | Definition: Node ID. Range: 1 to 2147483647. |
| plan_node_name | String | Definition: Node name. Range: 1 to 64 characters. Only letters, digits, and hyphens (-) are allowed. |
| start_time | String | Definition: Start time, in ISO 8601 standard format. For example, 2023-05-30T12:24:30.401Z. Range: N/A |
| duration | Long | Definition: Execution duration, in milliseconds. Range: 1 to 9,223,372,036,854,775,807. |
| status | String | Definition: Current execution status of an operator. Range |
| query_dop | Integer | Definition: Query parallelism. Range: 1 to 2147483647. |
| estimated_rows | Long | Definition: Estimated number of rows. Range: 1 to 9223372036854775807. |
| tuple_processed | Long | Definition: Number of rows currently processed. Range: 1 to 9223372036854775807. |
| min_peak_memory | Integer | Definition: Minimum peak memory usage, in MB. Range: 1 to 2,147,483,647. |
| max_peak_memory | Integer | Definition: Maximum peak memory usage, in MB. Range: 1 to 2,147,483,647. |
| average_peak_memory | Integer | Definition: Average peak memory usage, in MB. Range: 1 to 2,147,483,647. |
| memory_skew_percent | Integer | Definition: Memory usage skew percentage. Range: 1 to 2147483647. |
| min_spill_size | Integer | Definition: Minimum spill data size, in MB. Range: 1 to 2,147,483,647. |
| max_spill_size | Integer | Definition: Maximum spill data size, in MB. Range: 1 to 2,147,483,647. |
| average_spill_size | Integer | Definition: Average spill data size, in MB. Range: 1 to 2,147,483,647. |
| spill_skew_percent | String | Definition: Skew percentage of data spilled to disks. Range: N/A |
| loops | Integer | Definition: Number of operator execution iterations. Range: 1 to 2147483647. |
| progress | String | Definition: Execution progress percentage. Range: N/A |
| total_read_size | Long | Definition: Total amount of data read by all nodes, in MB. Range: 1 to 9,223,372,036,854,775,807. |
| total_write_size | Long | Definition: Total amount of data written by all nodes, in MB. Range: 1 to 9,223,372,036,854,775,807. |
| sub_operator_metrics | Array of OperatorMetric objects | Definition: Child nodes. Range: N/A |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 4,096 characters. |
| solution_msg | String | Definition: Solution description. Range: 2 to 4,096 characters. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 4,096 characters. |
| solution_msg | String | Definition: Solution description. Range: 2 to 4,096 characters. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 4,096 characters. |
| solution_msg | String | Definition: Solution description. Range: 2 to 4,096 characters. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 4,096 characters. |
| solution_msg | String | Definition: Solution description. Range: 2 to 4,096 characters. |
Status code: 408
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 4,096 characters. |
| solution_msg | String | Definition: Solution description. Range: 2 to 4,096 characters. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition: Error code. Range: 8 to 36 characters. |
| error_msg | String | Definition: Error description. Range: 2 to 4,096 characters. |
| solution_msg | String | Definition: Solution description. Range: 2 to 4,096 characters. |
Example Requests
Query SQL execution operator monitoring records.
GET /v2/workspaces/{workspace_id}/aura-sessions/{session_id}/statements/{statement_id}/operator-metrics
{ } Example Responses
Status code: 200
{
"session_id" : "019ecb4f-0662-7689-b348-a02a5a823a44,",
"statement_id" : "019ecb4f-84b8-7f34-8475-3554291ff8ee,",
"operator_metrics" : [ {
"query_id" : 132011764077297660,
"plan_node_id" : 1,
"plan_node_name" : "Row Adapter",
"start_time" : "2026-06-15T12:44:06.755+00:00",
"duration" : 20032,
"status" : "running",
"query_dop" : 1,
"estimated_rows" : 1,
"tuple_processed" : 1,
"min_peak_memory" : 1,
"max_peak_memory" : 10000,
"average_peak_memory" : 3000,
"memory_skew_percent" : 1,
"min_spill_size" : 1,
"max_spill_size" : 10000,
"average_spill_size" : 3000,
"spill_skew_percent" : "0%",
"loops" : 200,
"progress" : "0.00%",
"total_read_size" : 20000,
"total_write_size" : 30000,
"sub_operator_metrics" : [ {
"query_id" : 132011764077297660,
"plan_node_id" : 1,
"plan_node_name" : "Vector Result",
"start_time" : "2026-06-15T12:44:06.755+00:00",
"duration" : 20032,
"status" : "running",
"query_dop" : 1,
"estimated_rows" : 1,
"tuple_processed" : 1,
"min_peak_memory" : 1,
"max_peak_memory" : 10000,
"average_peak_memory" : 3000,
"memory_skew_percent" : 1,
"min_spill_size" : 1,
"max_spill_size" : 10000,
"average_spill_size" : 3000,
"spill_skew_percent" : "0%",
"loops" : 200,
"progress" : "0.00%",
"total_read_size" : 20000,
"total_write_size" : 30000,
"sub_operator_metrics" : [ ]
} ]
}, {
"query_id" : 132011764077297859,
"plan_node_id" : 1,
"plan_node_name" : "Vector Result",
"start_time" : "2026-06-15T12:44:06.755+00:00",
"duration" : 20032,
"status" : "running",
"query_dop" : 1,
"estimated_rows" : 1,
"tuple_processed" : 1,
"min_peak_memory" : 1,
"max_peak_memory" : 10000,
"average_peak_memory" : 3000,
"memory_skew_percent" : 1,
"min_spill_size" : 1,
"max_spill_size" : 10000,
"average_spill_size" : 3000,
"spill_skew_percent" : "0%",
"loops" : 200,
"progress" : "0.00%",
"total_read_size" : 20000,
"total_write_size" : 30000,
"sub_operator_metrics" : [ ]
} ]
} Status code: 400
{
"error_code" : "AIDataLake.00092031",
"error_msg" : "Invalid parameter name",
"solution_msg" : "Please enter parameters in the correct format."
} Status code: 401
{
"error_code" : "APIG.1002",
"error_msg" : "Incorrect token or token resolution failed.",
"solution_msg" : "Please obtain a valid token and retry."
} Status code: 403
{
"error_code" : "AIDataLake.00090030",
"error_msg" : "Unauthorized requests.",
"solution_msg" : "Check permissions and retry after authorization."
} Status code: 404
{
"error_code" : "AIDataLake.00090009",
"error_msg" : "The resource does not exists.",
"solution_msg" : "Please try to use correct info."
} Status code: 408
{
"error_code" : "common.00000408",
"error_msg" : "A timeout exception occurred.",
"solution_msg" : "The request timed out while waiting for a response — check the backend service status and network, then retry; if the operation is long-running, increase the client timeout or split the request."
} Status code: 500
{
"error_code" : "common.00000500",
"error_msg" : "internal error",
"solution_msg" : "An internal service error occurred. Please retry later; if the problem persists, contact technical support."
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Request succeeded. |
| 400 | Invalid request. |
| 401 | Unauthorized. |
| 403 | Request denied. |
| 404 | The requested resource could not be found. |
| 408 | Request timeout. |
| 500 | Internal server error. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot