统计信息
获取组合时间序列数据
同时获取请求数和拦截数的时间序列数据,用于图表展示
get/api/v1/stats/combined-time-series
Query parameters
timeRange'24h' | '7d' | '30d' required
时间范围:24h(24小时)、7d(7天)、30d(30天)
Response
获取组合时间序列数据成功
Example response
{
"code": 200,
"data": {
"blocks": {
"data": [
{
"timestamp": "2024-01-01T12:00:00Z",
"value": 128
}
],
"metric": "requests",
"timeRange": "24h"
},
"requests": {
"data": [
{
"timestamp": "2024-01-01T12:00:00Z",
"value": 128
}
],
"metric": "requests",
"timeRange": "24h"
},
"timeRange": "24h"
},
"message": "操作成功",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"success": true,
"timestamp": "2023-01-01T12:00:00Z"
}