文档
测试

主域名统计信息

GET
http:/domain/api/front/subhost/statics?func=flows&sub_host=bai-du.com&interval_time=1h&interval_day=1d

请求头

参数名
类型
描述
必填
Content-Type:application/json
sring
必填
Authorization
string
例如:Bearer token值
必填

请求参数

参数名
类型
描述
必填
func
string
统计类型 codes-状态吗 hits-命中率 flows=流量 wafs-防御
可选
sub_host
string
主域名
可选
interval_time
string
时间粒度 1m,5m,1h,1d
可选
interval_day
string
时间范围 30m,6h,12h,24h,7d,30d
可选

响应参数

参数名
类型
描述
必填
reqflow
int
入流量 M (flows)
必填
sendflow
int
出流量 M(flows)
必填
2xx
int
状态码 (codes)
必填
3xx
int
状态码 (codes)
必填
4xx
int
状态码 (codes)
必填
5xx
int
状态码 (codes)
必填
wafs
int
防御次数(wafs)
必填
hits
float
请求命中率(hits)
必填
flows
float
流量命中率(hits)
必填
sourceflow
int
回源流量 M(flows)
必填

说明 / 示例

返回参数示例: ``` { "code": 1, "msg": "success", "data": "[{"time":"2020-12-07T14:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-07T15:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-07T16:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-07T17:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-07T18:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-07T19:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-07T20:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-07T21:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-07T22:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-07T23:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T00:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T01:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T02:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T03:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T04:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T05:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T06:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T07:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T08:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T09:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T10:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T11:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T12:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T13:00:00+08:00","reqflow":0,"sendflow":0,"sourceflow":0},{"time":"2020-12-08T14:00:00+08:00","reqflow":0.00399017333984375,"sendflow":2.341278076171875,"sourceflow":1.1681013107299805}]" } ```