lts__ListTopnTrafficStatistics
Retrieve top N log groups or log streams by traffic volume within a time range, with filtering, sorting, and metric selection for LTS usage analysis.
Instructions
[LTS] 统计top n的日志组或日志流流量
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"end_time": "<end_time>",
"filter": "<filter>",
"is_desc": "<is_desc>",
"project_id": "<project_id>",
"resource_type": "<resource_type>",
"search_list": "<search_list>",
"sort_by": "<sort_by>",
"start_time": "<start_time>",
"topn": "<topn>"
},
"name": "lts__ListTopnTrafficStatistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topn | Yes | 查询前多少数据,范围1~100 | |
| filter | Yes | 过滤条件 { | |
| is_desc | Yes | 是否降序 true / false | |
| sort_by | Yes | 排序依据,index/write/storage/basicTransfer/seniorTransfer/coldStorage,必须是search_list中存在的数据 | |
| end_time | Yes | 结束时间时间戳,毫秒时间 | |
| project_id | Yes | 项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID。 | |
| start_time | Yes | 开始时间时间戳,毫秒时间,最多支持30天范围内的查询 | |
| search_list | Yes | 查询数据类型,字符串数组可多种搭配,只能在index/write/storage/basicTransfer/seniorTransfer/coldStorage中选填 | |
| resource_type | Yes | 资源类型,log_group / log_stream / tenant |