获取响应时间分布
URI /v2/site/respose_time_distribute/${task_id}.json?start_date=XX&end_date=XX
Method GET
参数说明
'task_id' => 网站监控项目ID(可以通过网站监控任务列表获得)

'start_date' => 开始日期(Y-m-d  默认当天)

'end_date' => 结束日期(Y-m-d  默认当天)
				
结果(json)
'start' => 响应时间开始范围大小(单位ms)

'end' => 响应时间结束范围大小(单位ms)

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

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

一个例子

curl -s "https://api.jiankongbao.com/v2/site/respose_time_distribute/705431.json?access_token=09d265e2dbe5dea925988b56762b312459668e88&start_date=2014-6-25&end_date=2014-6-25"

说明:access_token通过获取访问token得到。

返回结果

{
   "10": {
       "start": 10,
       "end": 20,
       "count": 35,
       "percent": "3.52"
   },
   "20": {
       "start": 20,
       "end": 30,
       "count": 172,
       "percent": "17.32"
   },
   "30": {
       "start": 30,
       "end": 40,
       "count": 230,
       "percent": "23.16"
   },
   "40": {
       "start": 40,
       "end": 50,
       "count": 193,
       "percent": "19.44"
   },
   "50": {
       "start": 50,
       "end": 60,
       "count": 124,
       "percent": "12.49"
   },
   "60": {
       "start": 60,
       "end": 70,
       "count": 36,
       "percent": "3.63"
   },
   "70": {
       "start": 70,
       "end": 80,
       "count": 19,
       "percent": "1.91"
   },
   "80": {
       "start": 80,
       "end": 90,
       "count": 8,
       "percent": "0.81"
   },
   "90": {
       "start": 90,
       "end": 100,
       "count": 3,
       "percent": "0.30"
   },
   "100": {
       "start": 100,
       "end": 120,
       "count": 16,
       "percent": "1.61"
   },
   "120": {
       "start": 120,
       "end": 150,
       "count": 57,
       "percent": "5.74"
   },
   "150": {
       "start": 150,
       "end": 180,
       "count": 13,
       "percent": "1.31"
   },
   "180": {
       "start": 180,
       "end": 200,
       "count": 3,
       "percent": "0.30"
   },
   "200": {
       "start": 200,
       "end": 250,
       "count": 3,
       "percent": "0.30"
   },
   "300": {
       "start": 300,
       "end": 400,
       "count": 1,
       "percent": "0.10"
   },
   "400": {
       "start": 400,
       "end": 500,
       "count": 23,
       "percent": "2.32"
   },
   "500": {
       "start": 500,
       "end": 600,
       "count": 31,
       "percent": "3.12"
   },
   "600": {
       "start": 600,
       "end": 700,
       "count": 4,
       "percent": "0.40"
   },
   "700": {
       "start": 700,
       "end": 800,
       "count": 1,
       "percent": "0.10"
   },
   "900": {
       "start": 900,
       "end": 1000,
       "count": 11,
       "percent": "1.11"
   },
   "1000": {
       "start": 1000,
       "end": 1200,
       "count": 3,
       "percent": "0.30"
   },
   "1200": {
       "start": 1200,
       "end": 1500,
       "count": 6,
       "percent": "0.60"
   },
   "1500": {
       "start": 1500,
       "end": 1800,
       "count": 1,
       "percent": "0.10"
   }
}