@rzzx
2017-03-02T04:00:54.000000Z
字数 5940
阅读 898
NetWork
文档中主机名需要参考以下配置:
内网:http://192.168.5.197:8082/rpc
外网:未定备注:这里需要客户端判断返回的net对象的数据是否都为0,如果都为0,则显示为null
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 | 地区 |
响应数据
/*成功响应*/ 不分是否真机{"status":200,"data":{"net":{"ts_dns":101, // dns时间"ts_connect":10, // 建连时间"ts_first_packet":157 // 首包时间},"content":{"byte_total":458501, //总下载字节数"cont_ele_total":32, //页面对象数"rate_download":505818 //下载速度},"errors":[//错误类型,只显示top三,如果n小于三个,就显示n个{"occupy":0.0017667844522968198,//占比"err_name":"HTTP/1.1 500 Internal Server Error(元素)"//错误描述},...],"name":"new调度基本页面" ,"digest":/*{"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","monNodeGroup":"不限制城市new(新调度)", //监测节点组"nodeGroupType":"Last Mile",//节点组类型"monCity":"",//监测点城市"monIsp":""//监测点运营商} (这一段只有isAddDigest=true才会显示) */}}/*错误响应*/没有数据/*错误响应*/{"status":503}/*错误响应*/{"status":-2} //authkey失效/*错误响应*/{"status":500,"message":"system error."}
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 | 地区 |
响应数据
/*成功响应*/{"status":200,"data":{"net":{"ts_dns":101, // dns时间"ts_connect":10, // 建连时间"ts_first_packet":157 // 首包时间},"content":{"byte_total":458501, //总下载字节数"cont_ele_total":32, //页面对象数"rate_download":505818 //下载速度},"name":"new调度基本页面","digest":/*{"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","monNodeGroup":"不限制城市new(新调度)", //监测节点组"nodeGroupType":"Last Mile",//节点组类型"monCity":"",//监测点城市"monIsp":""//监测点运营商} (这一段只有isAddDigest=true才会显示) */}}/*错误响应*/没有数据/*错误响应*/{"status":503}/*错误响应*/{"status":-2} //authkey失效/*错误响应*/{"status":500,"message":"system error."}
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 | 地区 |
响应数据
/*成功响应*/ 不区分是否真机{"status":200,"data":{"id":0, //此字段无用"name":null,"total":2,//延时"packetLost":0//丢包率,"digest":/*{"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","monNodeGroup":"不限制城市new(新调度)", //监测节点组"nodeGroupType":"Last Mile",//节点组类型"monCity":"",//监测点城市"monIsp":""//监测点运营商} (这一段只有isAddDigest=true才会显示) */}}/*错误响应*/没有数据/*错误响应*/{"status":503}/*错误响应*/{"status":-2} //authkey失效/*错误响应*/{"status":500,"message":"system error."}
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 | 地区 |
响应数据
/*成功响应*/{"status":200,"data":{"net":{"ts_dns":101, // dns时间"ts_connect":10, // 建连时间"ts_first_packet":157 // 首包时间},"flow":{"fluency":0,// 流畅度"ts_conAndBuf":0, // 首播时间"play_in_5s":0 // 5秒成功率},"errors":[//错误类型,只显示top三,如果n小于三个,就显示n个{"occupy":0.0017667844522968198,//占比"err_name":"HTTP/1.1 500 Internal Server Error(元素)"//错误描述},...],"name":"好好的一个后空翻就这样演砸了","digest":/*{"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","monNodeGroup":"不限制城市new(新调度)", //监测节点组"nodeGroupType":"Last Mile",//节点组类型"monCity":"",//监测点城市"monIsp":""//监测点运营商} (这一段只有isAddDigest=true才会显示) */}}/*错误响应*/没有数据/*错误响应*/{"status":503}/*错误响应*/{"status":-2} //authkey失效/*错误响应*/{"status":500,"message":"system error."}
步骤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 | 地区 |
响应数据
/*成功响应*/ 不分是否真机{"status":200,"data":{"net":{"ts_dns":101, // dns时间"ts_connect":10, // 建连时间"ts_first_packet":157 // 首包时间},"content":{"byte_total":458501, //总下载字节数"cont_ele_total":32, //页面对象数"rate_download":505818 //下载速度},"name":"new调度基本页面","digest":/*{"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","monNodeGroup":"不限制城市new(新调度)", //监测节点组"nodeGroupType":"Last Mile",//节点组类型"monCity":"",//监测点城市"monIsp":""//监测点运营商} (这一段只有isAddDigest=true才会显示) */}}/*错误响应*/没有数据/*错误响应*/{"status":503}/*错误响应*/{"status":-2} //authkey失效/*错误响应*/{"status":500,"message":"system error."}