获取所有队列统计信息
GET http(s)://{{Host}}/v1/console/queue/stats
示例
请求
curl -X GET "https://${Host}/v1/console/queue/stats" \
-H "Authorization: Bearer ${apikey}"
响应
[
{
"id": 1,
"queue": "test-queue1",
"level": 1,
"last_wrote_sharding_key": "1-1-20251105164619",
"last_wrote_id": 153,
"last_scanned_sharding_key": "1-1-20251105164619",
"last_scanned_id": 145,
"total_put_cnt": 20153662,
"total_loaded_cnt": 145,
"total_completed_cnt": 7,
"cuid": 10001,
"muid": 10001,
"cu_name": "xxx",
"mu_name": "xxx",
"ctime": "2025-10-31T18:35:46",
"mtime": "2025-11-10T16:14:28"
},
{
"id": 2,
"queue": "test-queue2",
"level": 1,
"last_wrote_sharding_key": "2-1-20251031183551",
"last_wrote_id": 124,
"last_scanned_sharding_key": "2-1-20251031183551",
"last_scanned_id": 124,
"total_put_cnt": 124,
"total_loaded_cnt": 124,
"total_completed_cnt": 7,
"cuid": 10001,
"muid": 10001,
"cu_name": "xxx",
"mu_name": "xxx",
"ctime": "2025-10-31T18:35:52",
"mtime": "2025-11-11T12:12:14"
}
]
Returns
返回系统中所有队列的统计信息列表
[
{
"id": "主键id",
"queue": "队列名称",
"level": "队列level",
"last_wrote_sharding_key": "写指针分片键",
"last_wrote_id": "写指针任务ID",
"last_scanned_sharding_key": "扫描指针分片键",
"last_scanned_id": "扫描指针任务ID",
"total_put_cnt": "总入队任务数",
"total_loaded_cnt": "总扫描任务数",
"total_completed_cnt": "总完成任务数",
"cuid": "创建人ID",
"muid": "修改人ID",
"cu_name": "创建人名称",
"mu_name": "修改人名称",
"ctime": "创建时间",
"mtime": "修改时间"
},
{
...
}
]