[关闭]
@rzzx 2017-03-02T04:00:54.000000Z 字数 5940 阅读 898

掌上听云客户端NetWork API接口-报表->汇总数据

NetWork

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

内网:http://192.168.5.197:8082/rpc
外网:未定

备注:这里需要客户端判断返回的net对象的数据是否都为0,如果都为0,则显示为null



1. 页面(是否真机)

URL

/summaryPage.do

示例URL

http://192.168.5.197:8082/rpc/summaryPage.do?authkey=JraUZFype4&startDate= 2016-10-31 18:00&endDate=2016-11-01 18:00&isMobile=false&id=41128

备注:这里返回的时间单位为毫秒,考虑服务器性能,转换由客户端来进行

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
startDate true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
endDate true string 结束时间
id true String 任务id
isMobile false bool 是否是真机(默认为false)
isAddDigest false bool 是否增加任务摘要(默认为false)
locate false String 地区

响应数据

  1. /*成功响应*/ 不分是否真机
  2. {
  3. "status":200,
  4. "data":{
  5. "net":{
  6. "ts_dns":101, // dns时间
  7. "ts_connect":10, // 建连时间
  8. "ts_first_packet":157 // 首包时间
  9. },
  10. "content":{
  11. "byte_total":458501, //总下载字节数
  12. "cont_ele_total":32, //页面对象数
  13. "rate_download":505818 //下载速度
  14. },
  15. "errors":[//错误类型,只显示top三,如果n小于三个,就显示n个
  16. {
  17. "occupy":0.0017667844522968198,//占比
  18. "err_name":"HTTP/1.1 500 Internal Server Error(元素)"//错误描述
  19. },
  20. ...
  21. ],
  22. "name":"new调度基本页面" ,
  23. "digest":/*{
  24. "url":" https://products.office.com/zh-cn/business/get-latest-office-365-for-your-business-with-2016-apps/?wt.srch=1&wt.mc_id=AID522643_SEM_Global-1_Baidu0996_11087209115214_11087209122808",
  25. "monNodeGroup":"不限制城市new(新调度)", //监测节点组
  26. "nodeGroupType":"Last Mile",//节点组类型
  27. "monCity":"",//监测点城市
  28. "monIsp":""//监测点运营商
  29. } (这一段只有isAddDigest=true才会显示) */
  30. }
  31. }
  32. /*错误响应*/
  33. 没有数据
  34. /*错误响应*/
  35. {"status":503}
  36. /*错误响应*/
  37. {"status":-2} //authkey失效
  38. /*错误响应*/
  39. {"status":500,"message":"system error."}

2. 文件(是否真机)

URL

/summaryFile.do

示例URL

http://192.168.5.197:8082/rpc/summaryFile.do?authkey=JraUZFype4&startDate=2016-10-31 18:00&endDate=2016-11-01 18:00&id=41128&isMobile=false

备注:这里返回的时间单位为毫秒,考虑服务器性能,转换由客户端来进行

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
startDate true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
endDate true string 结束时间
id true String 任务id
isMobile false bool 是否是真机(默认为false)
isAddDigest false bool 是否增加任务摘要(默认为false)
qname false String 匹配数据
locate false String 地区

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "net":{
  6. "ts_dns":101, // dns时间
  7. "ts_connect":10, // 建连时间
  8. "ts_first_packet":157 // 首包时间
  9. },
  10. "content":{
  11. "byte_total":458501, //总下载字节数
  12. "cont_ele_total":32, //页面对象数
  13. "rate_download":505818 //下载速度
  14. },
  15. "name":"new调度基本页面",
  16. "digest":/*{
  17. "url":" https://products.office.com/zh-cn/business/get-latest-office-365-for-your-business-with-2016-apps/?wt.srch=1&wt.mc_id=AID522643_SEM_Global-1_Baidu0996_11087209115214_11087209122808",
  18. "monNodeGroup":"不限制城市new(新调度)", //监测节点组
  19. "nodeGroupType":"Last Mile",//节点组类型
  20. "monCity":"",//监测点城市
  21. "monIsp":""//监测点运营商
  22. } (这一段只有isAddDigest=true才会显示) */
  23. }
  24. }
  25. /*错误响应*/
  26. 没有数据
  27. /*错误响应*/
  28. {"status":503}
  29. /*错误响应*/
  30. {"status":-2} //authkey失效
  31. /*错误响应*/
  32. {"status":500,"message":"system error."}

3. ping(是否真机)

URL

/summaryPing.do

示例URL

http://192.168.5.197:8082/rpc/summaryPing.do?authkey=JraUZFype4&startDate=2016-10-31 18:00&endDate=2016-11-01 18:00&isMobile=false&id=41128

备注:这里返回的时间单位为毫秒,考虑服务器性能,转换由客户端来进行

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
startDate true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
endDate true string 结束时间
id true String 任务id
isMobile false bool 是否是真机(默认为false)
isAddDigest false bool 是否增加任务摘要(默认为false)
qname false String 匹配数据
locate false String 地区

响应数据

  1. /*成功响应*/ 不区分是否真机
  2. {
  3. "status":200,
  4. "data":{
  5. "id":0, //此字段无用
  6. "name":null,
  7. "total":2,//延时
  8. "packetLost":0//丢包率,
  9. "digest":/*{
  10. "url":" https://products.office.com/zh-cn/business/get-latest-office-365-for-your-business-with-2016-apps/?wt.srch=1&wt.mc_id=AID522643_SEM_Global-1_Baidu0996_11087209115214_11087209122808",
  11. "monNodeGroup":"不限制城市new(新调度)", //监测节点组
  12. "nodeGroupType":"Last Mile",//节点组类型
  13. "monCity":"",//监测点城市
  14. "monIsp":""//监测点运营商
  15. } (这一段只有isAddDigest=true才会显示) */
  16. }
  17. }
  18. /*错误响应*/
  19. 没有数据
  20. /*错误响应*/
  21. {"status":503}
  22. /*错误响应*/
  23. {"status":-2} //authkey失效
  24. /*错误响应*/
  25. {"status":500,"message":"system error."}

4. 流媒体

URL

/summaryStream.do

示例URL

http://192.168.5.197:8082/rpc/summaryStream.do?authkey=JraUZFype4&startDate=2016-10-31 18:00&endDate=2016-11-01 18:00&id=46084

备注:这里返回的时间单位为毫秒,考虑服务器性能,转换由客户端来进行

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
startDate true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
endDate true string 结束时间
id true String 任务id
isAddDigest false bool 是否增加任务摘要(默认为false)
qname false String 匹配数据
locate false String 地区

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "net":{
  6. "ts_dns":101, // dns时间
  7. "ts_connect":10, // 建连时间
  8. "ts_first_packet":157 // 首包时间
  9. },
  10. "flow":{
  11. "fluency":0,// 流畅度
  12. "ts_conAndBuf":0, // 首播时间
  13. "play_in_5s":0 // 5秒成功率
  14. },
  15. "errors":[//错误类型,只显示top三,如果n小于三个,就显示n个
  16. {
  17. "occupy":0.0017667844522968198,//占比
  18. "err_name":"HTTP/1.1 500 Internal Server Error(元素)"//错误描述
  19. },
  20. ...
  21. ],
  22. "name":"好好的一个后空翻就这样演砸了",
  23. "digest":/*{
  24. "url":" https://products.office.com/zh-cn/business/get-latest-office-365-for-your-business-with-2016-apps/?wt.srch=1&wt.mc_id=AID522643_SEM_Global-1_Baidu0996_11087209115214_11087209122808",
  25. "monNodeGroup":"不限制城市new(新调度)", //监测节点组
  26. "nodeGroupType":"Last Mile",//节点组类型
  27. "monCity":"",//监测点城市
  28. "monIsp":""//监测点运营商
  29. } (这一段只有isAddDigest=true才会显示) */
  30. }
  31. }
  32. /*错误响应*/
  33. 没有数据
  34. /*错误响应*/
  35. {"status":503}
  36. /*错误响应*/
  37. {"status":-2} //authkey失效
  38. /*错误响应*/
  39. {"status":500,"message":"system error."}

5 事务

5.3 步骤3 根据页面获取情报汇总的值(是否真机)

步骤1和步骤2都在任务列表中已给出
URL

/summaryPageSeq.do

示例URL

http://192.168.5.197:8082/rpc/summaryPageSeq.do?authkey=JraUZFype4&startDate=2016-09-28 00:00&endDate=2016-11-02 00:00&taskId=50303&id=1&isMobile=false

备注:这里返回的时间单位为毫秒,考虑服务器性能,转换由客户端来进行

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
startDate true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
endDate true string 结束时间
taskId true String 任务id
id true String seqid
isMobile false bool 是否是真机(默认为false)
isAddDigest false bool 是否增加任务摘要(默认为false)
locate false String 地区

响应数据

  1. /*成功响应*/ 不分是否真机
  2. {
  3. "status":200,
  4. "data":{
  5. "net":{
  6. "ts_dns":101, // dns时间
  7. "ts_connect":10, // 建连时间
  8. "ts_first_packet":157 // 首包时间
  9. },
  10. "content":{
  11. "byte_total":458501, //总下载字节数
  12. "cont_ele_total":32, //页面对象数
  13. "rate_download":505818 //下载速度
  14. },
  15. "name":"new调度基本页面",
  16. "digest":/*{
  17. "url":" https://products.office.com/zh-cn/business/get-latest-office-365-for-your-business-with-2016-apps/?wt.srch=1&wt.mc_id=AID522643_SEM_Global-1_Baidu0996_11087209115214_11087209122808",
  18. "monNodeGroup":"不限制城市new(新调度)", //监测节点组
  19. "nodeGroupType":"Last Mile",//节点组类型
  20. "monCity":"",//监测点城市
  21. "monIsp":""//监测点运营商
  22. } (这一段只有isAddDigest=true才会显示) */
  23. }
  24. }
  25. /*错误响应*/
  26. 没有数据
  27. /*错误响应*/
  28. {"status":503}
  29. /*错误响应*/
  30. {"status":-2} //authkey失效
  31. /*错误响应*/
  32. {"status":500,"message":"system error."}
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注