获取任务最近一次的所有监测点的监测结果
<基本信息>
Path: /apiapi/data/statistics/request/lastdetail
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/lastdetail?task_id=6927375
<返回数据>
名称 | 类型 | 默认值 | 备注 |
object [] | item 类型: object | ||
scheduler_time | string | 调度时间 | |
request_id | number | 请求id | |
monitor_id | number | 监测点id | |
resp_time | number | 响应时间 | |
resp_result | number | 是否可用 0:不可用 1:可用 | |
resp_correctness | number | 是否正确 0:不正确 1:正确 | |
blocking_time | number | 阻塞时间 | |
dns_time | number | dns解析时间 | |
connect_time | number | 连接时间 | |
send_time | number | 数据发送时间 | |
wait_time | number | 等待响应时间 | |
receive_time | number | 接收数据时间 | |
ssl_time | number | ssl握手时间 | |
monitor_name | string | 监测点名称 | |
request_name | string | 请求名称 | |
request_url | string | 请求地址 |
响应示例
[ { "scheduler_time": "2023-12-02 13:45:01", "request_id": 2, "monitor_id": 2, "resp_time": 64.12, "resp_result": 1, "resp_correctness": 1, "blocking_time": 0, "dns_time": 7.66, "connect_time": 14.05, "send_time": 0, "wait_time": 13.82, "receive_time": 0.05, "ssl_time": 28.46, "monitor_name": "辽宁大连联通", "request_name": "fff", "request_url": "http://www.jingdong.com" }, { "scheduler_time": "2023-12-02 13:45:01", "request_id": 1, "monitor_id": 1, "resp_time": 368.49, "resp_result": 1, "resp_correctness": 1, "blocking_time": 0, "dns_time": 23.89, "connect_time": 108.9, "send_time": 0, "wait_time": 134.42, "receive_time": 36.77, "ssl_time": 64.35, "monitor_name": "陕西西安电信", "request_name": "stet1", "request_url": "https://www.baidu.com" }, { "scheduler_time": "2023-12-02 13:45:01", "request_id": 1, "monitor_id": 2, "resp_time": 64.12, "resp_result": 1, "resp_correctness": 1, "blocking_time": 0, "dns_time": 7.66, "connect_time": 14.05, "send_time": 0, "wait_time": 13.82, "receive_time": 0.05, "ssl_time": 28.46, "monitor_name": "辽宁大连联通", "request_name": "stet1", "request_url": "https://www.baidu.com" }, { "scheduler_time": "2023-12-02 13:45:01", "request_id": 2, "monitor_id": 1, "resp_time": 368.49, "resp_result": 1, "resp_correctness": 1, "blocking_time": 0, "dns_time": 23.89, "connect_time": 108.9, "send_time": 0, "wait_time": 134.42, "receive_time": 36.77, "ssl_time": 64.35, "monitor_name": "陕西西安电信", "request_name": "fff", "request_url": "http://www.jingdong.com" } ]