统计信息
获取流量时间序列数据
获取指定时间范围的入站和出站流量时间序列数据,用于图表展示
get/api/v1/stats/traffic-time-series
Query parameters
timeRange'24h' | '7d' | '30d' required
时间范围:24h(24小时)、7d(7天)、30d(30天)
Response
获取流量时间序列数据成功
Example response
{
"code": 200,
"data": {
"data": [
{
"inboundTraffic": 1024000,
"outboundTraffic": 2048000,
"timestamp": "2024-01-01T12:00:00Z"
}
],
"timeRange": "24h"
},
"message": "操作成功",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"success": true,
"timestamp": "2023-01-01T12:00:00Z"
}