URI | /v2/site/respose_time_distribute/${task_id}.json?start_date=&end_date= |
Method | GET |
参数说明 | task_id: 网站监控项目id; start_date:可选参数(年-月-日),不设置默认当天 end_date:可选参数(同start_date一同出现,格式一样) |
结果(json) | 成功:200 失败状态码:400 { "key": { "start": ***, //开始时间段 "end": ***, //结束时间段 "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" } }