Queries the detailed data of the Tunnel data transfer service within a specified time range.
Operation description
Request description
This API supports querying various Tunnel metrics, including slot usage details (slot_usage_detail), throughput details (throughput_detail), and throughput summary (throughput_summary).
The quotaNickname and project parameters cannot be empty at the same time.
When groupList contains table or ip, the project parameter must be specified. If it contains ip, the tableList parameter must also be specified.
orderColumn supports maxValue, minValue, avgValue, and sumValue (only applicable to throughput_summary). The default value is empty, which means no sorting is applied.
The default value of ascOrder is false, which indicates descending order.
The limit parameter defines the maximum number of returned results. The default value is 10, and the maximum value is 100.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:QueryTunnelMetricDetail |
list |
*Tunnel
|
None | None |
Request syntax
POST /api/v1/observations/tunnel/{metric}/detail HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| metric |
string |
Yes |
The name of the observability metric. Valid values:
|
slot_usage_detail |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| startTime |
integer |
Yes |
The start time of the query time range. The value is a UNIX timestamp in seconds. |
1735534322 |
| endTime |
integer |
Yes |
The end time of the query time range. The value is a UNIX timestamp in seconds. |
1735536322 |
| body |
object |
No |
The request body parameters. |
|
| quotaNickname |
string |
No |
The nickname of the Tunnel level-2 quota. The nickname of a shared quota is default. The nickname of an exclusive quota is in the format of quotaNickname#subQuotaNickname. |
quota_A |
| project |
string |
No |
The name of the project. |
project_a |
| tableList |
array |
No |
The list of table names. Tables belong to a project. Therefore, if tableList is not empty, project cannot be empty. |
|
|
string |
No |
The name of the table. |
tab_name |
|
| operationList |
array |
No |
The list of operation types. |
|
|
string |
No |
The operation type. Valid values:
|
upload |
|
| groupList |
array |
No |
The list of grouping criteria. |
|
|
string |
No |
The grouping criterion. Valid values:
|
quota |
|
| orderColumn |
string |
No |
The column by which to sort the results. Valid values:
|
maxValue |
| ascOrder |
boolean |
No |
Specifies whether to sort the results in ascending order. |
false |
| limit |
integer |
No |
The maximum number of results to return. Default value: 10. Maximum value: 100. |
10 |
| codeList |
array |
No |
The list of error codes. |
|
|
integer |
No |
The error code, such as 400 or 500. |
403 |
slot_usage_detail
Top N details of slot usage
- Supported optional filter parameters: quotaNickname, project, tableList, operationList, and groupList
quotaNickname and project cannot be empty at the same time.
orderColumn only supports maxValue, minValue, and avgValue. The default value is empty, which means no sorting is applied.
The default value of ascOrder is false, which indicates descending order.
The default value of limit is 10, and the maximum value is 100.
- groupList supports quota, project, table, and operation.
groupList cannot be empty. It specifies the granularity of data display.
throughput_detail
Top N details of throughput
- Supported optional filter parameters: quotaNickname, project, tableList, operationList, and groupList
quotaNickname and project cannot be empty at the same time.
orderColumn only supports maxValue, minValue, and avgValue. The default value is empty, which means no sorting is applied.
The default value of ascOrder is false, which indicates descending order.
The default value of limit is 10, and the maximum value is 100.
- groupList supports quota, project, table, ip, and operation.
groupList cannot be empty. It specifies the granularity of data display.
throughput_summary
Throughput summary
- Supported optional filter parameters: quotaNickname, project, tableList, operationList, and groupList
quotaNickname and project cannot be empty at the same time.
orderColumn only supports sumValue. The default value is empty, which means no sorting is applied.
The default value of ascOrder is false, which indicates descending order.
The default value of limit is 10, and the maximum value is 100.
- groupList supports quota, project, table, and operation.
groupList cannot be empty. It specifies the granularity of data display.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID. |
0a06dd4516687375802853481ec9fd |
| httpCode |
integer |
The HTTP status code returned. |
200 |
| errorCode |
string |
The error code. |
OBJECT_NOT_EXIST |
| errorMsg |
string |
The error message. |
plan \"***\" does not exist |
| data |
object |
The returned data. |
|
| name |
string |
The name of the observability metric. |
tableA |
| metrics |
array<object> |
The metric values. |
|
|
array<object> |
The metric values. |
||
| metric |
object |
The metric metadata information. |
|
|
string |
The metadata information. The key is the grouping criterion, and the value is the corresponding metadata. |
"project":"prjName" |
|
| value |
object |
The metric value information. |
"avgValue":"11.5" |
Examples
Success response
JSON format
{
"requestId": "0a06dd4516687375802853481ec9fd",
"httpCode": 200,
"errorCode": "OBJECT_NOT_EXIST",
"errorMsg": "plan \\\"***\\\" does not exist",
"data": {
"name": "tableA",
"metrics": [
{
"metric": {
"key": "\"project\":\"prjName\""
},
"value": {
"test": "test",
"test2": 1
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.