Queries details about the Tunnel Data Transmission Service for a specified time range.
Operation description
Usage notes
You can use this API to query Tunnel metrics, including slot usage details (
slot_usage_detail), throughput details (throughput_detail), and a throughput summary (throughput_summary).The
quotaNicknameandprojectparameters cannot both be empty.If the
groupListparameter includestableorip, theprojectparameter is required. If groupList includesip, thetableListparameter is also required.The
orderColumnparameter supportsmaxValue,minValue,avgValue, andsumValue(only forthroughput_summary). If this parameter is omitted, the results are not sorted.The
ascOrderparameter defaults tofalse(descending order).The
limitparameter specifies the number of results to return, with a default of 10 and a maximum of 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 metric name. Valid values:
|
slot_usage_detail |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| startTime |
integer |
Yes |
The start of the query time range. This is a Unix timestamp in seconds. |
1735534322 |
| endTime |
integer |
Yes |
The end of the query time range. This is a Unix timestamp in seconds. |
1735536322 |
| body |
object |
No |
The request body parameters. |
|
| quotaNickname |
string |
No |
The nickname of the level-2 tunnel quota. The nickname for a shared quota is For an exclusive quota, the nickname is in the |
quota_A |
| project |
string |
No |
The name of the project. |
project_a |
| tableList |
array |
No |
A list of table names. The |
|
|
string |
No |
The name of the table. |
tab_name |
|
| operationList |
array |
No |
A list of operation types. |
|
|
string |
No |
The operation type. Valid values:
|
upload |
|
| groupList |
array |
No |
The list of grouping dimensions. |
|
|
string |
No |
The grouping dimension. Valid values:
|
quota |
|
| orderColumn |
string |
No |
The sort column. Valid values:
|
maxValue |
| ascOrder |
boolean |
No |
Specifies whether to sort the results in ascending order. If you set this parameter to |
false |
| limit |
integer |
No |
The maximum number of entries to return. Default: 10. Maximum: 100. |
10 |
| codeList |
array |
No |
A list of error codes to filter the results. |
|
|
integer |
No |
An error code, such as 400 or 500. |
403 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID. |
0a06dd4516687375802853481ec9fd |
| httpCode |
integer |
The HTTP status code. |
200 |
| errorCode |
string |
The error code. |
OBJECT_NOT_EXIST |
| errorMsg |
string |
The error message. |
plan \"***\" does not exist |
| data |
object |
The response data. |
|
| name |
string |
The metric name. |
tableA |
| metrics |
array<object> |
The metric values. |
|
|
array<object> |
A list of metric data points. |
||
| metric |
object |
The metric metadata. |
|
|
string |
The metadata. The key represents a dimension, and the value is the value of that dimension. |
"project":"prjName" |
|
| value |
object |
The metric's numerical values. |
"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.