获取任务最近一次的监测汇总结果
<基本信息>
Path: /apiapi/data/statistics/request/laststatic
Method: GET
请求参数类型: URL路径参数
响应参数类型:JSON
<请求参数>
Query
参数名称 | 是否必须 | 参数类型 | 默认值 | 示例 | 备注 |
task_id | 是 | int | 无 | 任务ID | |
start_time | 否 | datetime | 开始时间 | ||
end_time | 否 | datetime | 结束时间 |
请求示例
curl -H "token:a3af84f7c1d0d935024ba58b5da78aaa" https://v6-api.jiankongbao.com/apiapi/data/statistics/request/laststatic?task_id=6927375
<返回数据>
名称 | 类型 | 默认值 | 备注 |
object [] | item 类型: object | ||
scheduler_time | string | 调度时间 | |
resp_time_avg | number | 平均响应时间 | |
avail_rate | number | 本次可用率 | |
coll_rate | number | 本次正确率 | |
blocking_time_avg | number | 平均阻塞时间 | |
dns_time_avg | number | 平均dns解析时间 | |
connect_time_avg | number | 平均连接时间 | |
send_time_avg | number | 平均数据发送时间 | |
wait_time_avg | number | 平均等待响应时间 | |
receive_time_avg | number | 平均接收数据时间 | |
ssl_time_avg | number | 平均ssl握手时间 | |
request_name | string | 请求名称 | |
request_url | string | 请求地址 |
响应示例
[ { "request_id": 1, "scheduler_time": "2023-12-02 13:45:01", "resp_time_avg": 216.31, "avail_rate": 100, "coll_rate": 100, "blocking_time_avg": 0, "dns_time_avg": 15.78, "connect_time_avg": 61.48, "send_time_avg": 0, "wait_time_avg": 74.12, "receive_time_avg": 18.41, "ssl_time_avg": 46.41, "request_name": "stet1", "request_url": "https://www.baidu.com" }, { "request_id": 2, "scheduler_time": "2023-12-02 13:45:01", "resp_time_avg": 216.31, "avail_rate": 100, "coll_rate": 100, "blocking_time_avg": 0, "dns_time_avg": 15.78, "connect_time_avg": 61.48, "send_time_avg": 0, "wait_time_avg": 74.12, "receive_time_avg": 18.41, "ssl_time_avg": 46.41, "request_name": "fff", "request_url": "http://www.jingdong.com" } ]