获取任务正确率、错误时长、错误次数监测点TopN数据

<基本信息>

Path /apiapi/data/correctness/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


correct_rate_avg

排序字段【可选correct_rate_avg,error_time,error_count】

top_sort

string


desc

排序规则【asc:正序,desc:倒序】

start_time

datetime


当天的0点

开始时间

end_time

datetime


当前时间

结束时间

请求示例

curl -H "token:a3af84f7c1d0d935024ba58b5da78aaa" https://v6-api.jiankongbao.com/apiapi/data/correctness/monitor/list?end_time=2022-08-02&start_time=2022-08-01&task_id=10547&top_field=error_time&top_number=5


返回数据

名称

类型

是否必须

默认值

备注

其他信息


object 

非必须



item 类型:object

monitor_id

number

必须


监测点ID

备注:监测点ID

monitor_name

string

必须


监测点名称

备注:监测点名称

isp_name

string

必须


运营商

备注:运营商

isp_id

number

必须


运营商id

备注:运营商id

location_name

string

必须


监测点所属城市

备注:监测点所属城市

location_code

number

必须


监测点所属城市编码

备注:监测点所属城市编码

world_region

string

必须


监测点所属的世界地区

备注:监测点所属的世界地区

world_region_code

number

必须


监测点所属的世界地区编码

备注:监测点所属的世界地区编码

china_region

string

必须


监测点所属的中国地区

备注:监测点所属的中国地区

china_region_code

number

必须


监测点所属的中国地区编码

备注:监测点所属的中国地区编码

correct_rate_avg

string

必须


正确率

备注:正确率

error_count

number

必须


错误次数

备注:错误次数

error_time

number

必须


错误时长(单位:秒)

备注:错误时长(单位:秒)

error_time_str

string

必须


错误时长,格式化

备注:错误时长,格式化

响应示例

[
    {
        "monitor_id": 1,
        "monitor_name": "陕西西安电信",
        "isp_name": "电信",
        "isp_id": 1,
        "location_name": "西安市",
        "location_code": "100610100",
        "world_region": "亚太",
        "world_region_code": 1,
        "china_region": "西北",
        "china_region_code": 1006,
        "correct_rate_avg": "100",
        "error_count": 0,
        "error_time": "-",
        "error_time_str": "-"
    },
    {
        "monitor_id": 2,
        "monitor_name": "辽宁大连联通",
        "isp_name": "联通",
        "isp_id": 2,
        "location_name": "大连市",
        "location_code": "100210200",
        "world_region": "亚太",
        "world_region_code": 1,
        "china_region": "东北",
        "china_region_code": 1002,
        "correct_rate_avg": "100",
        "error_count": 0,
        "error_time": "-",
        "error_time_str": "-"
    },
......
]