任务列表

方法:POST

Content-Type:application/json

https://network.tingyun.com/network-pro/api/alarm/alarmTask-json-authkey

请求参数

字段名 类型 必填 选项 描述
task_type Int -- 任务类型 页面监测(PC):11,文件监测(PC):12,Ping监测(PC):0,事务监测(PC):2,流媒体监测(PC):3,MTR监测:7,私有协议:255,页面监测(移动):102,文件监测(移动):1021,Ping监测(移动):100,事务监测(移动):103,流媒体监测(移动):111,短信监测(移动):105
authkey String 授权码 授权码

返回参数

字段名 类型 描述
status Long 状态码
data.tasks.task_id Int 任务ID
data.tasks.task_type Int 任务类型
data.tasks.task_name String 任务名字
data.tasks.task_url String 任务配置URL
data.tasks.status Int 任务状态

错误说明

字段说明 错误信息
authkey PermissionDeniedError

返回示例

{
    "status": 200,
    "data": {
        "task_types": [
            {
                "network_type": 1,
                "task_type": 11
            },
            {
                "network_type": 1,
                "task_type": 12
            },
            {
                "network_type": 1,
                "task_type": 0
            },
            {
                "network_type": 1,
                "task_type": 2
            },
            {
                "network_type": 1,
                "task_type": 3
            },
            {
                "network_type": 1,
                "task_type": 7
            },
            {
                "network_type": 1,
                "task_type": 255
            }
        ],
        "tasks": [
            {
                "task_id": 117319,
                "task_type": 11,
                "task_option": "B",
                "task_name": "子账号基本页面",
                "task_url": "www.baidu.com",
                "task_status": 1,
                "network_type": 1,
                "agreement_id": 1760,
                "detail_id": 9465,
                "probe_count": 150,
                "page_seq_beans": [],
                "script_beans": [],
                "customErrors": []
            },
            {
                "task_id": 117359,
                "task_type": 11,
                "task_option": "B",
                "task_name": "3.0 修改基本页面update",
                "task_url": "www.douban111.com",
                "task_status": 1,
                "network_type": 1,
                "agreement_id": 1760,
                "detail_id": 1761,
                "probe_count": 0,
                "page_seq_beans": [],
                "script_beans": [],
                "customErrors": []
            }
        ]
    }
}
© 2007-2023 北京基调网络股份有限公司 all right reserved,powered by Gitbook本文档更新于: 2023-09-04 19:10

results matching ""

    No results matching ""