[关闭]
@rzzx 2017-08-02T08:14:24.000000Z 字数 21858 阅读 893

掌上听云客户端Browser API接口-tree的请求

Browser

文档中主机名需要参考以下配置:

内网:http://192.168.5.73:8084/tingyun-api-browser
外网:



treeJSON数据如果只需要中文,需请求数据头文件里声明'X-Accept-Language': 'zh-cn'

1. 页面分析tree的获取

baseonId讲解

baseonId 说明 备注
1 完全加载
27 HTML加载
28 页面渲染
3 页面耗时占比
35 慢页面耗时占比

1.1 一级tree的获取

URL

/browserapp/selectfilter/page/hosts.json

示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/page/hosts.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&baseonId=1&browserAppId=7061&orderId=4&limit=20&timePeriod=129600&timeType=1&endTime=

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
baseonId true int baseonId讲解中相对应的值
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
orderId false int 排序方式 前面打钩(选中)的情况下是4 未选中情况下是null(0)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[ {
  5. "pId" : "-2",
  6. "formatValue" : "2.413",//值
  7. "tmTick" : null,
  8. "duration_total_caller_percent" : 0.0,
  9. "jserror_top5_uri_percent" : 0.0,
  10. "id" : "1",
  11. "name" : "reportalpha1.tingyun.com",//name
  12. "unit" : "秒",//单位
  13. "hostId" : 123798,//二级tree使用和图表都需要传递的值(参数:host_id)
  14. "uriId" : null,
  15. "jsErrorId" : null,
  16. "webBrowserId" : null,
  17. "webBrowserVersionId" : null,
  18. "countryId" : null,
  19. "regionId" : null,
  20. "cityId" : null,
  21. "carrierId" : null,
  22. "connectTypeId" : null,
  23. "errorCode" : null,
  24. "browserMediaId" : null,
  25. "wholeUriId" : null,
  26. "mediaErrorCode" : null,
  27. "urlPattern" : "reportalpha1.tingyun.com",
  28. "value" : 2.413
  29. },
  30. ...
  31. ]
  32. }
  33. /*错误响应*/
  34. {
  35. "status":-1,
  36. "data":"_ty_auth_token is NULL"
  37. }
  38. /*错误响应*/
  39. {
  40. "status":-500,
  41. "message":"system error."
  42. }

1.2 二级tree的获取

URL

/browserapp/selectfilter/page/urls.json

示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/page/urls.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&baseonId=1&browserAppId=7061&orderId=4&limit=20&timePeriod=129600&timeType=1&&pageNo=1&pageSize=20&host_id=123798

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
host_id true int 在一级tree中
baseonId true int baseonId讲解中相对应的值
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
orderId false int 排序方式 前面打钩(选中)的情况下是4,未选中情况下是null(0)
pageNo false int 第几页,默认为1
pageSize false int 每页大小
limit false int 取top数,limit=20,就是只取top20的值

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[ {
  5. "pId" : "123798",
  6. "formatValue" : "1.889",//值
  7. "tmTick" : null,
  8. "duration_total_caller_percent" : 0.0,
  9. "jserror_top5_uri_percent" : 0.0,
  10. "id" : "123798-1",
  11. "name" : "https:SpringController/KeyActionController/overview",
  12. "unit" : "秒",
  13. "hostId" : 123798,//图表调用需要传递的值(参数:host_id)
  14. "uriId" : 19531775,//图表调用需要传递的值(参数:uri_id)
  15. "jsErrorId" : null,
  16. "webBrowserId" : null,
  17. "webBrowserVersionId" : null,
  18. "countryId" : null,
  19. "regionId" : null,
  20. "cityId" : null,
  21. "carrierId" : null,
  22. "connectTypeId" : null,
  23. "errorCode" : null,
  24. "browserMediaId" : null,
  25. "wholeUriId" : null,
  26. "mediaErrorCode" : null,
  27. "urlPattern" : "https:SpringController/KeyActionController/overview",
  28. "value" : 1.889
  29. },
  30. ...
  31. ]
  32. }
  33. /*错误响应*/
  34. {
  35. "status":-1,
  36. "data":"_ty_auth_token is NULL"
  37. }
  38. /*错误响应*/
  39. {
  40. "status":-500,
  41. "message":"system error."
  42. }

2. 地域tree的获取(其对应的图表和下面运营商一样,具体的请求方式=具体做时再细说)

baseonId讲解

baseonId 说明 备注
1 完全加载
27 HTML加载
29 DNS
30 建连
31 首包
32 剩余包
3 页面耗时占比
35 慢页面占比
4 吞吐率
17 总耗时占比
15 吞吐率
8 响应时间
9 传输数据量
10 回调时间

2.1 一级tree的获取(应用分析和关键页面和关键AJAX)

应用分析URL

/browserapp/selectfilter/geo/regions.json

关键页面URL

/browser/keypage/selectfilter/geo/regions.json

关键AJAXURL

/keyajax/selectfilter/geo/regions.json

应用分析示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/geo/regions.json?_ty_auth_token=bdlj7muhh1njua3qr5c0rkulxjy9soe4&baseonId=1&browserAppId=7061&hideLowerThroughtput=1&countryId=48&timePeriod=129600&timeType=1&endTime=&orderId=4

关键页面示例URL(多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/browser/keypage/selectfilter/geo/regions.json?_ty_auth_token=bdlj7muhh1njua3qr5c0rkulxjy9soe4&baseonId=1&browserAppId=445&hideLowerThroughtput=1&countryId=48&timePeriod=86400&timeType=1&endTime=&orderId=4&browserKeyPageId=463

关键AJAX示例URL(比应用分析多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/keyajax/selectfilter/geo/regions.json?_ty_auth_token=bdlj7muhh1njua3qr5c0rkulxjy9soe4&baseonId=17&browserAppId=7281&hideLowerThroughtput=1&countryId=48&timePeriod=129600&timeType=1&endTime=&orderId=4&browserKeyAjaxId=147

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
browserKeyPageId true int browserKeyPageId ID(关键页面需要传)
browserKeyAjaxId true int browserKeyAjaxId ID(关键AJAX需要传)
baseonId true int baseonId讲解中相对应的值
countryId true int 固定传48(之后的图表也需要传)
hideLowerThroughtput false int 隐藏访问量<1%是否选中,选中:1,未选中:0
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
orderId false int 排序方式 前面打钩(选中)的情况下是4,未选中情况下是null(0)

响应数据(应用分析和关键页面和关键AJAX是一样的)

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[
  5. {
  6. "pId":"48",
  7. "formatValue":"20.276",//value
  8. "tmTick":null,
  9. "duration_total_caller_percent":0,
  10. "jserror_top5_uri_percent":0,
  11. "id":"48-1",
  12. "name":"重庆",//name
  13. "unit":"秒",//单位
  14. "hostId":null,
  15. "uriId":null,
  16. "jsErrorId":null,
  17. "webBrowserId":null,
  18. "webBrowserVersionId":null,
  19. "countryId" : 48,//图表调用需要传递的值(参数:countryId)
  20. "regionId" : 4850,//图表调用需要传递的值(参数:regionId)
  21. "cityId" : null,//图表调用需要传递的值(参数:cityId)
  22. "carrierId" : 0,//图表调用需要传递的值(参数:carrierId)
  23. "connectTypeId":null,
  24. "errorCode":null,
  25. "browserMediaId":null,
  26. "wholeUriId":null,
  27. "mediaErrorCode":null,
  28. "urlPattern":null,
  29. "value":20.276
  30. },
  31. ...
  32. ]
  33. }
  34. /*错误响应*/
  35. {
  36. "status":-1,
  37. "data":"_ty_auth_token is NULL"
  38. }
  39. /*错误响应*/
  40. {
  41. "status":-500,
  42. "message":"system error."
  43. }

2.2 二级tree的获取(应用分析和关键页面和关键AJAX)

应用分析URL

/browserapp/selectfilter/geo/citys.json

关键页面URL

/browser/keypage/selectfilter/geo/citys.json

关键AJAXURL

/keyajax/selectfilter/geo/citys.json

应用分析示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/geo/citys.json?_ty_auth_token=bdlj7muhh1njua3qr5c0rkulxjy9soe4&baseonId=1&browserAppId=7061&hideLowerThroughtput=1&regionId=4850&timePeriod=129600&timeType=1&endTime=&orderId=4

关键页面示例URL(多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/browser/keypage/selectfilter/geo/citys.json?_ty_auth_token=bdlj7muhh1njua3qr5c0rkulxjy9soe4&baseonId=1&browserAppId=445&hideLowerThroughtput=1&regionId=4832&timePeriod=86400&timeType=1&endTime=&orderId=4&browserKeyPageId=463

关键AJAX示例URL(比应用分析多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/keyajax/selectfilter/geo/citys.json?_ty_auth_token=bdlj7muhh1njua3qr5c0rkulxjy9soe4&baseonId=17&browserAppId=7281&hideLowerThroughtput=1&regionId=4811&timePeriod=129600&timeType=1&endTime=&orderId=4&browserKeyAjaxId=147

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
browserKeyPageId true int browserKeyPageId ID(关键页面需要传)
browserKeyAjaxId true int browserKeyAjaxId ID(关键AJAX需要传)
baseonId true int baseonId讲解中相对应的值
regionId true int 一级tree的regionId
hideLowerThroughtput false int 隐藏访问量<1%是否选中,选中:1,未选中:0
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
orderId false int 排序方式 前面打钩(选中)的情况下是4,未选中情况下是null(0)

响应数据(应用分析和关键页面和关键AJAX是一样的)

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[
  5. {
  6. "pId" : "4850",
  7. "formatValue" : null,//value
  8. "tmTick" : null,
  9. "duration_total_caller_percent" : 0.0,
  10. "jserror_top5_uri_percent" : 0.0,
  11. "id" : "4850-1",
  12. "name" : "重庆市",//name
  13. "unit" : "秒",//单位
  14. "hostId" : null,
  15. "uriId" : null,
  16. "jsErrorId" : null,
  17. "webBrowserId" : null,
  18. "webBrowserVersionId" : null,
  19. "countryId" : null,
  20. "regionId" : 4850,
  21. "cityId" : 485001,
  22. "carrierId" : null,
  23. "connectTypeId" : null,
  24. "errorCode" : null,
  25. "browserMediaId" : null,
  26. "wholeUriId" : null,
  27. "mediaErrorCode" : null,
  28. "urlPattern" : null,
  29. "value" : 20.276
  30. },
  31. ...
  32. ]
  33. }
  34. /*错误响应*/
  35. {
  36. "status":-1,
  37. "data":"_ty_auth_token is NULL"
  38. }
  39. /*错误响应*/
  40. {
  41. "status":-500,
  42. "message":"system error."
  43. }

2.3 三级tree的获取(应用分析和关键页面和关键AJAX)

应用分析URL

/browserapp/selectfilter/combo/combos.json

关键页面URL

/browser/keypage/selectfilter/combo/combos.json

关键AJAXURL

/browser/keyajax/selectfilter/combo/combos.json

应用分析示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/combo/combos.json?_ty_auth_token=bdlj7muhh1njua3qr5c0rkulxjy9soe4&filterGeoType=3&groupId=3145728&baseonId=1&browserAppId=7061&hideLowerThroughtput=1&cityId=485001&timePeriod=129600&timeType=1&endTime=&filterGeoId=485001&orderId=4

关键页面示例URL(多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/combo/combos.json?_ty_auth_token=bdlj7muhh1njua3qr5c0rkulxjy9soe4&filterGeoType=3&groupId=3145728&aseonId=1&browserAppId=445&hideLowerThroughtput=1&cityId=483201&timePeriod=86400&timeType=1&endTime=&filterGeoId=483201&orderId=4&browserKeyPageId=463

关键AJAX示例URL(比应用分析多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/combo/combos.json?_ty_auth_token=bdlj7muhh1njua3qr5c0rkulxjy9soe4&filterGeoType=3&groupId=3145728&baseonId=17&browserAppId=7281&hideLowerThroughtput=1&cityId=481101&timePeriod=129600&timeType=1&endTime=&filterGeoId=481101&orderId=4&browserKeyAjaxId=147

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
browserKeyPageId true int browserKeyPageId ID(关键页面需要传)
browserKeyAjaxId true int browserKeyAjaxId ID(关键AJAX需要传)
baseonId true int baseonId讲解中相对应的值
filterGeoType true int 3(固定)
groupId true int 3145728(固定)
cityId true int 从二级tree中cityId获取
filterGeoId true int filterGeoId=cityId
hideLowerThroughtput false int 隐藏访问量<1%是否选中,选中:1,未选中:0
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
orderId false int 排序方式 前面打钩(选中)的情况下是4,未选中情况下是null(0)

响应数据(应用分析和关键页面是一样的)

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[
  5. {
  6. "pId" : "-2",
  7. "formatValue" : null,//value
  8. "tmTick" : null,
  9. "duration_total_caller_percent" : 0.0,
  10. "jserror_top5_uri_percent" : 0.0,
  11. "id" : "1",
  12. "name" : "重庆市_中国电信",//name
  13. "unit" : "秒",//单位
  14. "hostId" : null,
  15. "uriId" : null,
  16. "jsErrorId" : null,
  17. "webBrowserId" : null,
  18. "webBrowserVersionId" : null,
  19. "countryId" : null,
  20. "regionId" : null,
  21. "cityId" : 485001,
  22. "carrierId" : 17,
  23. "connectTypeId" : null,
  24. "errorCode" : null,
  25. "browserMediaId" : null,
  26. "wholeUriId" : null,
  27. "mediaErrorCode" : null,
  28. "urlPattern" : null,
  29. "value" : 20.276
  30. },
  31. ...
  32. ]
  33. }
  34. /*错误响应*/
  35. {
  36. "status":-1,
  37. "data":"_ty_auth_token is NULL"
  38. }
  39. /*错误响应*/
  40. {
  41. "status":-500,
  42. "message":"system error."
  43. }

3. 运营商tree的获取(应用分析和关键页面和关键AJAXURL)

baseonId讲解

baseonId 说明 备注
1 完全加载
27 HTML加载
29 DNS
30 建连
31 首包
32 剩余包
3 页面耗时占比
35 慢页面占比
36 吞吐率
17 总耗时占比
15 吞吐率
8 响应时间
9 传输数据量
10 回调时间

备注(这一段我会特别讲解)

1.运营商tab直接点击,出来的图表不需要传其余的参数,当点击运营商tree时,这时图表需要传countryId和carrierId参数。
2.这时进入了省份运营商的tab页,再点击省份运营商的tree时,这时图表需要传countryId、carrierId、regionId(城市运营商页面耗时图表可能不希望切换城市),而HTML加载分解图表又有city的选项所以要多加一个参数cityId

应用分析URL

/browserapp/selectfilter/combo/combos.json

关键页面URL

/browser/keypage/selectfilter/combo/combos.json

关键AJAXURL

/browser/keyajax/selectfilter/combo/combos.json

应用分析示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/combo/combos.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&groupId=2359296&baseonId=1&browserAppId=7061&orderId=4&hideLowerThroughtput=1&timePeriod=129600&timeType=1&endTime=

关键页面示例URL(多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/browser/keypage/selectfilter/combo/combos.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&groupId=2359296&baseonId=1&browserAppId=445&orderId=4&hideLowerThroughtput=1&timePeriod=86400&timeType=1&endTime=&browserKeyPageId=463

关键AJAX示例URL(比应用分析多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/browser/keyajax/selectfilter/combo/combos.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&roupId=2359296&baseonId=17&browserAppId=7281&browserKeyAjaxId=147&orderId=4&hideLowerThroughtput=1&timePeriod=129600&timeType=1&endTime=

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
browserKeyPageId true int browserKeyPageId ID(关键页面需要传)
browserKeyAjaxId true int browserKeyAjaxId ID(关键AJAX需要传)
baseonId true int baseonId讲解中相对应的值
groupId true int 运营商:2359296、省份运营商:2621440、城市运营商:3145728
hideLowerThroughtput false int 隐藏访问量<1%是否选中,选中:1,未选中:0
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
orderId false int 排序方式 前面打钩(选中)的情况下是4,未选中情况下是null(0)

响应数据(应用分析和关键页面和关键AJAX是一样的)

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":
  5. [ {
  6. "pId" : "-2",
  7. "formatValue" : "1.78",//值
  8. "tmTick" : null,
  9. "duration_total_caller_percent" : 0.0,
  10. "jserror_top5_uri_percent" : 0.0,
  11. "id" : "1",
  12. "name" : "#246_未知",//name
  13. "unit" : "秒",//单位
  14. "hostId" : null,
  15. "uriId" : null,
  16. "jsErrorId" : null,
  17. "webBrowserId" : null,
  18. "webBrowserVersionId" : null,
  19. "countryId" : 246,//图表调用需要传递的值(参数:countryId)
  20. "regionId" : null,//图表调用需要传递的值(参数:regionId)
  21. "cityId" : null,//图表调用需要传递的值(参数:cityId)
  22. "carrierId" : 0,//图表调用需要传递的值(参数:carrierId)
  23. "connectTypeId" : null,
  24. "errorCode" : null,
  25. "browserMediaId" : null,
  26. "wholeUriId" : null,
  27. "mediaErrorCode" : null,
  28. "urlPattern" : null,
  29. "value" : 1.78
  30. },
  31. ...
  32. ]
  33. }
  34. /*错误响应*/
  35. {
  36. "status":-1,
  37. "data":"_ty_auth_token is NULL"
  38. }
  39. /*错误响应*/
  40. {
  41. "status":-500,
  42. "message":"system error."
  43. }

4. Ajax tree的获取

baseonId讲解

baseonId 说明 备注
6 总耗时占比
15 吞吐率
8 响应时间
9 传输数据量
10 回调时间

4.1 一级tree的获取(应用分析)

URL

/browserapp/selectfilter/ajax/hosts.json

示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/ajax/hosts.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&baseonId=6&browserAppId=7061&limit=20&timePeriod=129600&timeType=1&endTime=

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
baseonId true int baseonId讲解中相对应的值
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
orderId false int 排序方式 前面打钩(选中)的情况下是4,未选中情况下是null(0)
limit false int 取top数,limit=20,就是只取top20的值

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[ {
  5. "pId" : "-2",
  6. "formatValue" : "99.98",//vlaue
  7. "tmTick" : null,
  8. "duration_total_caller_percent" : 0.0,
  9. "jserror_top5_uri_percent" : 0.0,
  10. "id" : "1",
  11. "name" : "reportalpha1.tingyun.com",//name
  12. "unit" : "%",//单位
  13. "hostId" : 123798,//二级tree和图表调用需要传递的值(参数:host_id)
  14. "uriId" : null,
  15. "jsErrorId" : null,
  16. "webBrowserId" : null,
  17. "webBrowserVersionId" : null,
  18. "countryId" : null,
  19. "regionId" : null,
  20. "cityId" : null,
  21. "carrierId" : null,
  22. "connectTypeId" : null,
  23. "errorCode" : null,
  24. "browserMediaId" : null,
  25. "wholeUriId" : null,
  26. "mediaErrorCode" : null,
  27. "urlPattern" : "reportalpha1.tingyun.com",
  28. "value" : 99.98
  29. },
  30. ...
  31. ]
  32. }
  33. /*错误响应*/
  34. {
  35. "status":-1,
  36. "data":"_ty_auth_token is NULL"
  37. }
  38. /*错误响应*/
  39. {
  40. "status":-500,
  41. "message":"system error."
  42. }

4.2 二级tree的获取(应用分析和关键页面,关键页面只有一级所以对应应用分析二级tree)

应用分析URL

/browser/browserapp/selectfilter/ajax/urls.json

关键页面URL

/browser/keypage/selectfilter/ajax/urls.json

应用分析示例URL

http://192.168.5.73:8084/tingyun-api-browser/browser/browserapp/selectfilter/ajax/urls.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&baseonId=6&browserAppId=7061&limit=20&timePeriod=129600&timeType=1&pageNo=1&pageSize=20&host_id=123798

关键页面示例URL(多了browserKeyPageId参数,没有host_id参数)

http://192.168.5.73:8084/tingyun-api-browser/browser/browserapp/selectfilter/ajax/urls.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&baseonId=6&browserKeyPageId=459&limit=20&timePeriod=86400&timeType=1&endTime=&browserAppId=7098

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
browserKeyPageId true int browserKeyPageId ID(关键页面需要传)
host_id true int 在一级tree中
baseonId true int baseonId讲解中相对应的值
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
pageNo false int 第几页,默认为1
pageSize false int 每页大小
limit false int 取top数,limit=20,就是只取top20的值

TOP5 错误类型错误率这个表需要多传递一个error_type=1,2(固定)
响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":
  5. [ {
  6. "pId" : "123798",
  7. "formatValue" : "35.94",//value
  8. "tmTick" : null,
  9. "duration_total_caller_percent" : 0.0,
  10. "jserror_top5_uri_percent" : 0.0,
  11. "id" : "123798-1",
  12. "name" : "GET https:SpringController/HighchartsServerChartDataController/handleApplicationChart",//name
  13. "unit" : "%",//单位
  14. "hostId" : 123798,//图表调用需要传递的值(参数:host_id)
  15. "uriId" : 19531445,//图表调用需要传递的值(参数:uri_id)
  16. "jsErrorId" : null,
  17. "webBrowserId" : null,
  18. "webBrowserVersionId" : null,
  19. "countryId" : null,
  20. "regionId" : null,
  21. "cityId" : null,
  22. "carrierId" : null,
  23. "connectTypeId" : null,
  24. "errorCode" : null,
  25. "browserMediaId" : null,
  26. "wholeUriId" : null,
  27. "mediaErrorCode" : null,
  28. "urlPattern" : "GET https:SpringController/HighchartsServerChartDataController/handleApplicationChart",
  29. "value" : 35.94
  30. },
  31. ...
  32. ]
  33. }
  34. /*错误响应*/
  35. {
  36. "status":-1,
  37. "data":"_ty_auth_token is NULL"
  38. }
  39. /*错误响应*/
  40. {
  41. "status":-500,
  42. "message":"system error."
  43. }

5. JS错误 tree的获取(应用分析和关键页面)

应用分析URL

/browserapp/selectfilter/js/errors.json

关键页面URL

/keypage/selectfilter/js/errors.json

应用分析示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/js/errors.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&browserAppId=7061&limit=20&timePeriod=129600&timeType=1

关键页面示例URL(多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/keypage/selectfilter/js/errors.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&browserAppId=7098&limit=20&timePeriod=86400&timeType=1&endTime=&browserKeyPageId=459

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int 应用ID
browserKeyPageId true int browserKeyPageId ID(关键页面需要传)
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
timeType false string 默认传1
limit false int 取top数,limit=20,就是只取top20的值

响应数据(应用分析和关键页面是一样的)

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[ {
  5. "pId" : "-2",
  6. "formatValue" : "480",//value
  7. "tmTick" : null,
  8. "duration_total_caller_percent" : 0.0,
  9. "jserror_top5_uri_percent" : 0.0,
  10. "id" : "1",
  11. "name" : "Uncaught TypeError: Cannot read property 'x' of undefined",//name
  12. "unit" : "次",//单位
  13. "hostId" : null,
  14. "uriId" : null,
  15. "jsErrorId" : 117623,//图表调用需要传递的值(参数:js_error_id)
  16. "webBrowserId" : null,
  17. "webBrowserVersionId" : null,
  18. "countryId" : null,
  19. "regionId" : null,
  20. "cityId" : null,
  21. "carrierId" : null,
  22. "connectTypeId" : null,
  23. "errorCode" : null,
  24. "browserMediaId" : null,
  25. "wholeUriId" : null,
  26. "mediaErrorCode" : null,
  27. "urlPattern" : null,
  28. "value" : 480.0
  29. },
  30. ...
  31. ]
  32. }
  33. /*错误响应*/
  34. {
  35. "status":-1,
  36. "data":"_ty_auth_token is NULL"
  37. }
  38. /*错误响应*/
  39. {
  40. "status":-500,
  41. "message":"system error."
  42. }

6. 浏览器 tree的获取

baseonId讲解

baseonId 说明 备注
1 完全加载
28 页面渲染
33 DOM解析
34 资源加载
3 页面耗时占比
35 慢页面占比
36 吞吐率

6.1 一级tree的获取(应用分析和关键页面)

应用分析URL

/browserapp/selectfilter/web/browsers.json

关键页面URL

/browser/keypage/selectfilter/web/browsers.json

应用分析示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/web/browsers.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&baseonId=1&browserAppId=7061&orderId=4&hideLowerThroughtput=1&timePeriod=129600&timeType=1&endTime=

关键页面示例URL(多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/web/browsers.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&baseonId=1&browserAppId=7098&orderId=4&hideLowerThroughtput=1&timePeriod=86400&timeType=1&endTime=&browserKeyPageId=459

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
browserKeyPageId true int browserKeyPageId ID(关键页面需要传)
baseonId true int baseonId讲解中相对应的值
hideLowerThroughtput false int 隐藏访问量<1%是否选中,选中:1,未选中:0
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
orderId false int 排序方式 前面打钩(选中)的情况下是4,未选中情况下是null(0)

响应数据(应用分析和关键页面是一样的)

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[ {
  5. "pId" : "-2",
  6. "formatValue" : "1.994",//value
  7. "tmTick" : null,
  8. "duration_total_caller_percent" : 0.0,
  9. "jserror_top5_uri_percent" : 0.0,
  10. "id" : "1",
  11. "name" : "Chrome",//name
  12. "unit" : "秒",//单位
  13. "hostId" : null,
  14. "uriId" : null,
  15. "jsErrorId" : null,
  16. "webBrowserId" : 6,//二级tree和图表需要传递的值(参数:web_browser_id)
  17. "webBrowserVersionId" : null,//图表需要传递的值(参数:web_browser_version_id)
  18. "countryId" : null,
  19. "regionId" : null,
  20. "cityId" : null,
  21. "carrierId" : null,
  22. "connectTypeId" : null,
  23. "errorCode" : null,
  24. "browserMediaId" : null,
  25. "wholeUriId" : null,
  26. "mediaErrorCode" : null,
  27. "urlPattern" : null,
  28. "value" : 1.994
  29. },
  30. ...
  31. ]
  32. }
  33. /*错误响应*/
  34. {
  35. "status":-1,
  36. "data":"_ty_auth_token is NULL"
  37. }
  38. /*错误响应*/
  39. {
  40. "status":-500,
  41. "message":"system error."
  42. }

6.2 二级tree的获取(应用分析和关键页面)

应用分析URL

/browserapp/selectfilter/web/browserVersions.json

关键页面URL

browser/keypage/selectfilter/web/browserVersion.json

应用分析示例URL

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/web/browserVersions.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&baseonId=1&browserAppId=7061&orderId=4&hideLowerThroughtput=1&timePeriod=129600&timeType=1&endTime=&web_browser_id=10

关键页面示例URL(多了browserKeyPageId参数)

http://192.168.5.73:8084/tingyun-api-browser/browserapp/selectfilter/web/browserVersions.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&baseonId=1&browserAppId=7098&orderId=4&hideLowerThroughtput=1&timePeriod=86400&timeType=1&endTime=&web_browser_id=6&browserKeyPageId=459

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
browserKeyPageId true int browserKeyPageId ID(关键页面需要传)
baseonId true int baseonId讲解中相对应的值
web_browser_id true int 一级tree中获取
hideLowerThroughtput false int 隐藏访问量<1%是否选中,选中:1,未选中:0
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
orderId false int 排序方式 前面打钩(选中)的情况下是4,未选中情况下是null(0)
limit false int 取top数,limit=20,就是只取top20的值
  1. /*成功响应*/(应用分析和关键页面是一样的)
  2. {
  3. "status":200,
  4. "data":
  5. [ {
  6. "pId" : "10",
  7. "formatValue" : "0.867",//值
  8. "tmTick" : null,
  9. "duration_total_caller_percent" : 0.0,
  10. "jserror_top5_uri_percent" : 0.0,
  11. "id" : "10-1",
  12. "name" : "9",//name
  13. "unit" : "秒",//单位
  14. "hostId" : null,
  15. "uriId" : null,
  16. "jsErrorId" : null,
  17. "webBrowserId" : 10,//二级tree和图表需要传递的值(参数:web_browser_id)
  18. "webBrowserVersionId" : 80,//图表需要传递的值(参数:web_browser_version_id)
  19. "countryId" : null,
  20. "regionId" : null,
  21. "cityId" : null,
  22. "carrierId" : null,
  23. "connectTypeId" : null,
  24. "errorCode" : null,
  25. "browserMediaId" : null,
  26. "wholeUriId" : null,
  27. "mediaErrorCode" : null,
  28. "urlPattern" : null,
  29. "value" : 0.867
  30. }
  31. ...
  32. ]
  33. }
  34. /*错误响应*/
  35. {
  36. "status":-1,
  37. "data":"_ty_auth_token is NULL"
  38. }
  39. /*错误响应*/
  40. {
  41. "status":-500,
  42. "message":"system error."
  43. }

7. Ajax 错误tree的获取

URL

/browser/keyajax/selectfilter/errors/errors.json

示例URL

http://192.168.5.73:8084/tingyun-api-browser/browser/keyajax/selectfilter/errors/errors.json?_ty_auth_token=kl2ir1io8oz1l8uamxyaql34twi6rm4e&browserAppId=445&browserKeyAjaxId=131&limit=20&timePeriod=129600&timeType=1&endTime=

请求参数

参数 必选 类型 说明
_ty_auth_token true string token客户端获取
browserAppId true int browser ID
browserKeyAjaxId true int browserKeyAjaxId
timeType false int 先默认为1
endTime false string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
timePeriod false string 时间间隔 相差多少分钟
limit false int 取top数,limit=20,就是只取top20的值

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":[ {
  5. "pId" : "-2",
  6. "formatValue" : "1463",//value
  7. "tmTick" : null,
  8. "duration_total_caller_percent" : 0.0,
  9. "jserror_top5_uri_percent" : 0.0,
  10. "id" : "1",
  11. "name" : "500", //name
  12. "unit" : "次", //单位
  13. "hostId" : null,
  14. "uriId" : null,
  15. "jsErrorId" : null,
  16. "webBrowserId" : null,
  17. "webBrowserVersionId" : null,
  18. "countryId" : null,
  19. "regionId" : null,
  20. "cityId" : null,
  21. "carrierId" : null,
  22. "connectTypeId" : null,
  23. "errorCode" : 500,
  24. "browserMediaId" : null,
  25. "wholeUriId" : null,
  26. "mediaErrorCode" : null,
  27. "urlPattern" : null,
  28. "value" : 1463.0
  29. },
  30. ...
  31. ]
  32. }
  33. /*错误响应*/
  34. {
  35. "status":-1,
  36. "data":"_ty_auth_token is NULL"
  37. }
  38. /*错误响应*/
  39. {
  40. "status":-500,
  41. "message":"system error."
  42. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注