[关闭]
@rzzx 2017-07-25T03:14:54.000000Z 字数 2078 阅读 1568

掌上听云客户端App API接口-情报汇总数据

列表项

App

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

内网:http://reportlocal.tingyun.com
外网:https://report.tingyun.com



概述

崩溃:

平均值,行业均值,找到Bug,崩溃发生,影响用户,修复问题

响应时间(情报汇总的响应时间):

平均值,行业均值,吞吐率,总访问量

HTTP错误率(情报汇总的HTTP错误率 / 网络错误率):

平均值,行业均值,HTTP错误数,总访问量

网络错误率(情报汇总的HTTP错误率 / 网络错误):

平均值,行业均值,网络错误数,总访问量

1.图表数据接口

URL

/mobileApplication/selectFilter/allReportData

请求参数

参数 必选 类型 说明
_ty_auth_token true string token从authlocal.tingyun.com:10886/auth/api/auth/login获取
mobileAppId true string 移动AppID
timePeriod true string 时间间隔 相差多少分钟
endTime true string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
mobileAppVersionFilterId false string 版本号
timeZone false String 时区

备注:endTime、timePeriod一定要与图表的相一致

响应数据

  1. {
  2. "status":200,
  3. "data":{
  4. "net":{
  5. "industryMean":0,//行业均值
  6. "meanValue":0,//平均值
  7. "allCount":7614820,//总访问量
  8. "netError":0//net错误数
  9. },
  10. "http":{//HTTP错误率
  11. "industryMean":0,
  12. "meanValue":0,
  13. "allCount":14,
  14. "httpCount":0//HTTP错误数
  15. },
  16. "response":{//响应时间
  17. "industryMean":592.2307692307693,
  18. "meanValue":0,
  19. "allCount":14,
  20. "throughput":426.7142857142857//吞吐率
  21. },
  22. "crash":{
  23. "userCount":2,//影响用户
  24. "industryMean":0.9615384615384616,
  25. "meanValue":367,//平均值
  26. "fixedCount":0,//修复问题
  27. "crashCount":0,//崩溃发生
  28. "findBugCount":0//找到Bug
  29. }
  30. }
  31. }
  32. 备注:industryMeanthroughput的除数为0时,其值为null

2.图表数据接口第2版

URL

/mobileApplication/selectFilter/allReportDataV2

实例URL

http://192.168.5.73:8081/tingyun-api-app/mobileApplication/selectFilter/allReportDataV2?_ty_auth_token=hh0a62r7m8c5pd34cjuk337aqbgiocbk&mobileAppId=3604&timePeriod=129600

请求参数

参数 必选 类型 说明
_ty_auth_token true string token从authlocal.tingyun.com:10886/auth/api/auth/login获取
mobileAppId true string 移动AppID
timePeriod true string 时间间隔 相差多少分钟
endTime true string 结束时间 格式如:yyyy-MM-dd HH:mm:ss
mobileAppVersionFilterId false string 版本号
timeZone false String 时区

备注:endTime、timePeriod一定要与图表的相一致

响应数据

  1. {
  2. "status":200,
  3. "data":{
  4. "response":{
  5. "meanValue":1.72832836,
  6. "allCount":638350,
  7. "throughput":4.92554012345679
  8. },
  9. "error":{
  10. "meanValue":4.77,
  11. "allCount":638350,
  12. "netError":30426,
  13. "httpCount":22980
  14. },
  15. "flowConsumer":{
  16. "totalTransfer":null,
  17. "totalCount":0,
  18. "meanValue":null
  19. },
  20. "anr":{
  21. "userCount":0,
  22. "meanValue":null,
  23. "anrTotal":0
  24. },
  25. "crash":{
  26. "userCount":0,
  27. "meanValue":0,
  28. "fixedCount":0,
  29. "crashCount":0,
  30. "findBugCount":0
  31. }
  32. }
  33. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注