获取任务响应时间,监测点TopN数据
<基本信息>
Path: /apiapi/data/response/monitor/list
Method: GET
请求参数类型: URL路径参数
响应参数类型:JSON
<请求参数>
Query
参数名称 | 是否必须 | 参数类型 | 默认值 | 示例 | 备注 |
task_id | 是 | int | 无 | 任务ID | |
request_id | 否 | int | 无 | 请求ID | |
location_code | 否 | int | 无 | 地区编码 | |
isp_id | 否 | int | 无 | 运营商ID | |
top_number | 否 | int | 无 | topN的值 | |
top_field | 否 | string | resp_time_avg | 排序字段【可选resp_time_avg】 | |
top_sort | 否 | string | desc | 排序规则【asc:正序,desc:倒序】 | |
start_time | 否 | datetime | 当天的0点 | 开始时间 | |
end_time | 否 | datetime | 当前时间 | 结束时间 |
请求示例
curl -H "token:a3af84f7c1d0d935024ba58b5da78aaa" https://v6-api.jiankongbao.com/apiapi/data/response/monitor/list?end_time=2022-02-28&start_time=2022-01-28&task_id=9033&top_field=resp_time_avg&top_number=5
<返回数据>
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
object | 非必须 | item 类型: object | |||
monitor_id | number | 必须 | 监测点ID | 备注: 监测点ID | |
monitor_name | string | 必须 | 监测点名称 | 备注: 监测点名称 | |
isp_id | number | 必须 | 运营商ID | 备注: 运营商ID | |
isp_name | string | 必须 | 运营商 | 备注: 运营商 | |
location_name | string | 必须 | 监测点所属区域名称 | 备注: 监测点所属区域名称 | |
world_region | string | 必须 | 监测点所属世界地区 | 备注: 监测点所属世界地区 | |
world_region_code | number | 必须 | 监测点所属世界地区code | 备注: 监测点所属世界地区code | |
china_region | string | 必须 | 监测点所属中国地区 | 备注: 监测点所属中国地区 | |
china_region_code | number | 必须 | 监测点所属中国地区code | 备注: 监测点所属中国地区code | |
resp_time_avg | string | 必须 | 平均响应时间 | 备注: 平均响应时间 | |
resp_time_max | string | 必须 | 最慢响应时间 | 备注: 最慢响应时间 | |
resp_time_min | string | 必须 | 最快响应时间 | 备注: 最快响应时间 |
响应示例
[
{
"monitor_id": 1,
"monitor_name": "陕西西安电信",
"isp_id": 1,
"isp_name": "电信",
"location_name": "西安市",
"world_region": "亚太",
"world_region_code": 1,
"china_region": "西北",
"china_region_code": 1006,
"resp_time_avg": "233.61",
"resp_time_max": "295",
"resp_time_min": "197"
},
{
"monitor_id": 2,
"monitor_name": "辽宁大连联通",
"isp_id": 2,
"isp_name": "联通",
"location_name": "大连市",
"world_region": "亚太",
"world_region_code": 1,
"china_region": "东北",
"china_region_code": 1002,
"resp_time_avg": "166.84",
"resp_time_max": "302",
"resp_time_min": "130"
}
]