URI

/v2/site/entgrouptasklists.json

Method

GET

参数说明

参数名

必填

描述

默认值

access_token

必填



ent_node_id

必填

分组ID


page

选填

分页参数

默认第1页,每页返回50条记录

成功结果:

[

    {

         "task_id":   "684351",

          "task_name": "test1",

          "task_summary": "http://www.sohu.com",

          "task_type": "http",

          "task_create_time": "2016-05-20 15:38:54",

          "frequency": "2",

          "retry":   "2",

          "uprate":   "100%",

          "resptime_avg": "192.98 ms",

          "last_resp_time": "156.762ms",

          "last_resp_result": "0",

          "last_resp_status": "405 Method Not Allowed",

          "last_check_time":   "2016-05-23 14:43:20",

          "task_status": "暂停"

      },

      ............

]

返回项

类型

描述

task_id

String

任务ID

task_name

String

任务名称

task_summary

String

URL或域名

task_type

String

任务类型

task_create_time

String

任务创建时间

frequency

String

监控频率

retry

String

重试几次告警

uprate

String

可用率

resptime_avg

String

平均响应时间

last_resp_result

String

最后一次监控响应结果

last_resp_time

String

最后一次监控响应时间

last_resp_status

String

最后一次监控状态

last_check_time

String

最后一次监控时间

task_status

String

任务状态

失败结果:

{

  "code": 400,

  "msg": "没有指定企业分组ID"

}

返回项

类型

描述

code

String

状态码

msg

String

状态描述


调用示例:

curl -s 'https://api.jiankongbao.com/v2/site/entgrouptasklists.json?access_token=63cb677e9bae4f9f79447c8dca973f4541850a29&ent_node_id=2247&page=1'