URI

/v2/site/respose_time_distribute/${task_id}.json

Method

GET

参数说明

参数名

必填

描述

默认值

task_id

必填

网站监控项目ID


access_token

必填



start_date

选填

开始时间(年-月-日)

默认当天

end_date

选填

结束时间(年-月-日)

默认当天

成功结果:

{

        "120": {

                "start": 120,

                 "end": 150,

                 "count": 219,

                 "percent": "85.21"

         },

         "150": {

                "start": 150,

                 "end": 180,

                 "count": 16,

                 "percent": "6.23"

         },

         …………..

 }

返回项

类型

描述

start

String

响应时间开始范围大小(单位ms)

end

String

响应时间结束范围大小(单位ms)

count

String

在该响应时间范围中监控时响应时间出现的次数

percent

String

该响应时间范围中出现的次数占整个监控的百分比

失败结果:

{

  "code": 400,

  "msg": "没有指定任务ID"

  }

返回项

类型

描述

code

String

状态码

msg

String

状态描述

 

调用示例:

curl -s 'https://api.jiankongbao.com/v2/site/respose_time_distribute/684351.json?access_token=614884a6516dacb737fe72413479cbed75961bd9&start_date=2016-05-22&end_date=2016-05-23'