v1

latestSwagger 2.0Apache 2.02026-07-174372196.9 KB
统计信息

获取统计概览数据

获取指定时间范围内的统计概览数据,包括请求数、流量、错误率等

get/api/v1/stats/overview

Query parameters

timeRange'24h' | '7d' | '30d' required

时间范围:24h(24小时)、7d(7天)、30d(30天)

Response

获取统计概览成功

codeinteger
messagestring
requestIdstring
successboolean
timestampstring

Example response

{
  "code": 200,
  "data": {
    "attackIPCount": 45,
    "blockCount": 123,
    "error4xx": 234,
    "error4xxRate": 0.23,
    "error5xx": 45,
    "error5xxRate": 0.05,
    "inboundTraffic": 67890123,
    "maxQPS": 150,
    "outboundTraffic": 12345678,
    "timeRange": "24h",
    "totalRequests": 123456
  },
  "message": "操作成功",
  "requestId": "550e8400-e29b-41d4-a716-446655440000",
  "success": true,
  "timestamp": "2023-01-01T12:00:00Z"
}