[关闭]
@rzzx 2017-03-03T08:16:07.000000Z 字数 16809 阅读 952

掌上听云客户端NetWork API接口-报表->图表

NetWork

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

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

备注:这里的图表格式如有异议,可以讨论, 图表格式差不多,不过我暂时将不同的图表的返回数据进行展示一遍,最后讨论可以就采用相应格式。

使用提示:home键可快速回到目录



1. 历史曲线图(compPerfByTime)->对应指标的图表

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfByTime&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4&basedOn=U

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfByTime&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4&basedOn=U

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
basedOn true string 指标(传指标对应表里的key值),多指标以逗号进行分开
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)
pageSeq false string 事务页面需要传递的参数
isAvail false bool 是否可用性图表(默认为false)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":"new调度基本页面",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":1477537200000,
  14. "y":"1.32"
  15. },
  16. ...
  17. ],
  18. "params":"{"id":41128}"
  19. }
  20. ],
  21. "xAxis":null,
  22. "yAxis":null,
  23. "aggregateValue":"NaN"
  24. },
  25. "type":"line"
  26. }
  27. }
  28. /*错误响应*/
  29. 没有数据
  30. /*错误响应*/
  31. {"status":503}
  32. /*错误响应*/
  33. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  34. /*错误响应*/
  35. {"status":500,"message":"system error."}

2. 运营商曲线图(compPerfIspByTime)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfIspByTime&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4&basedOn=U

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfIspByTime&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4&basedOn=U

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
basedOn true string 指标(传指标对应表里的key值),多指标以逗号进行分开
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)
isAvail false bool 是否可用性图表(默认为false)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":"中国电信",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":1477537200000,
  14. "y":"2.361"
  15. },
  16. ...
  17. ],
  18. "params":"{"id":null}"
  19. },
  20. {
  21. "id":null,
  22. "name":"电信通",
  23. "baseName":"首屏时间",
  24. "data":[
  25. {
  26. "x":1477537200000,
  27. "y":"2.361"
  28. },
  29. ...
  30. ],
  31. "params":"{"id":null}"
  32. }
  33. ],
  34. "xAxis":null,
  35. "yAxis":null,
  36. "aggregateValue":"NaN"
  37. },
  38. "type":"line"
  39. }
  40. }
  41. /*错误响应*/
  42. 没有数据
  43. /*错误响应*/
  44. {"status":503}
  45. /*错误响应*/
  46. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  47. /*错误响应*/
  48. {"status":500,"message":"system error."}

3. 省份性能图(compPerfByProv)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfByProv&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4&basedOn=U

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfByProv&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4&basedOn=U

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
basedOn true string 指标(传指标对应表里的key值),多指标以逗号进行分开
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)
pageSeq false string 事务页面需要传递的参数

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":null,
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":2534.766666666667,
  14. "y":"上海"
  15. },
  16. ...
  17. ],
  18. "params":"{"id":41128}"
  19. }
  20. ],
  21. "xAxis":[
  22. {
  23. "tickInterval":null,
  24. "type":null
  25. }
  26. ],
  27. "yAxis":[
  28. {
  29. "tickUnit":"秒"
  30. }
  31. ],
  32. "aggregateValue":"NaN"
  33. },
  34. "type":"bar"
  35. }
  36. }
  37. /*错误响应*/
  38. 没有数据
  39. /*错误响应*/
  40. {"status":503}
  41. /*错误响应*/
  42. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  43. /*错误响应*/
  44. {"status":500,"message":"system error."}

4. 运营商性能图(compPerfByIsp)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfByIsp&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4&basedOn=U

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfByIsp&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4&basedOn=U

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
basedOn true string 指标(传指标对应表里的key值),多指标以逗号进行分开
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)
pageSeq false string 事务页面需要传递的参数

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":"new调度基本页面",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":"3.188",
  14. "y":"北京-中国电信"
  15. },
  16. {
  17. "x":"1.726",
  18. "y":"北京-电信通"
  19. }
  20. ],
  21. "params":"{"id":41128}"
  22. }
  23. ],
  24. "xAxis":null,
  25. "yAxis":null,
  26. "aggregateValue":"NaN"
  27. },
  28. "type":"bar"
  29. }
  30. }
  31. /*错误响应*/
  32. 没有数据
  33. /*错误响应*/
  34. {"status":503}
  35. /*错误响应*/
  36. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  37. /*错误响应*/
  38. {"status":500,"message":"system error."}

5. 省份运营商性能图(compPerfProvIsp)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfProvIsp&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4&basedOn=U

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfProvIsp&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4&basedOn=U

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
basedOn true string 指标(传指标对应表里的key值),多指标以逗号进行分开
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)
pageSeq false string 事务页面需要传递的参数

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":"new调度基本页面",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":"1.672",
  14. "y":"北京-中国电信"
  15. },
  16. {
  17. "x":"1.569",
  18. "y":"北京-电信通"
  19. }
  20. ],
  21. "params":"{"id":41128}"
  22. }
  23. ],
  24. "xAxis":[
  25. {
  26. "tickInterval":null,
  27. "type":null
  28. }
  29. ],
  30. "yAxis":[
  31. {
  32. "tickUnit":"秒"
  33. }
  34. ],
  35. "aggregateValue":"NaN"
  36. },
  37. "type":"bar"
  38. }
  39. }
  40. /*错误响应*/
  41. 没有数据
  42. /*错误响应*/
  43. {"status":503}
  44. /*错误响应*/
  45. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  46. /*错误响应*/
  47. {"status":500,"message":"system error."}

6. 城市运营商性能图(compPerfLocationIsp)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfLocationIsp&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4&basedOn=U

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=compPerfLocationIsp&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4&basedOn=U

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
basedOn true string 指标(传指标对应表里的key值),多指标以逗号进行分开
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)
pageSeq false string 事务页面需要传递的参数

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":"new调度基本页面",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":"3.188",
  14. "y":"北京市-中国电信"
  15. },
  16. {
  17. "x":"1.726",
  18. "y":"北京市-电信通"
  19. }
  20. ],
  21. "params":"{"id":41128}"
  22. }
  23. ],
  24. "xAxis":null,
  25. "yAxis":null,
  26. "aggregateValue":"NaN"
  27. },
  28. "type":"bar"
  29. }
  30. }
  31. /*错误响应*/
  32. 没有数据
  33. /*错误响应*/
  34. {"status":503}
  35. /*错误响应*/
  36. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  37. /*错误响应*/
  38. {"status":500,"message":"system error."}

7. 错误概况图(errorTypeByTask)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=errorTypeByTask&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=errorTypeByTask&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "index":[
  6. {
  7. "occupy":" 0.97%",
  8. "err_name":"HTTP/1.1 500 Internal Server Error(元素)"
  9. },
  10. {
  11. "occupy":" 0.22%",
  12. "err_name":"任务超时(元素)"
  13. },
  14. {
  15. "occupy":" 0.20%",
  16. "err_name":"无法解析服务器的名称或地址(元素)"
  17. }
  18. ],
  19. "chart":{
  20. "series":[
  21. {
  22. "id":null,
  23. "name":"new调度基本页面",
  24. "data":[
  25. {
  26. "x":"HTTP/1.1 500 Internal Server Error(元素)",
  27. "y":0.05935251798561151
  28. },
  29. {
  30. "x":"HTTP/1.1 404 Not Found(元素)",
  31. "y":0.008992805755395683
  32. },
  33. {
  34. "x":"无法解析服务器的名称或地址(元素)",
  35. "y":0.007194244604316547
  36. }
  37. ],
  38. "params":"{"id":null}"
  39. }
  40. ],
  41. "xAxis":null,
  42. "yAxis":null,
  43. "aggregateValue":"NaN"
  44. },
  45. "type":"line"
  46. }
  47. }
  48. /*错误响应*/
  49. 没有数据
  50. /*错误响应*/
  51. {"status":503}
  52. /*错误响应*/
  53. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  54. /*错误响应*/
  55. {"status":500,"message":"system error."}

8. 延时曲线图(pingByTime)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=44132&chartId=pingByTime&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=44132&chartId=pingByTime&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)
isAvail false bool 是否丢包率图表(默认为false)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":"平均延时",
  9. "name":"PING",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":1477497600000,
  14. "y":"4.0"
  15. },
  16. ...
  17. ],
  18. "params":"{"id":44132}"
  19. }
  20. ],
  21. "xAxis":[
  22. {
  23. "tickInterval":"MM-dd HH:mm",
  24. "type":"datetime"
  25. }
  26. ],
  27. "yAxis":[
  28. {
  29. "tickUnit":"毫秒"
  30. }
  31. ],
  32. "aggregateValue":"NaN"
  33. },
  34. "type":"line"
  35. }
  36. }
  37. /*错误响应*/
  38. 没有数据
  39. /*错误响应*/
  40. {"status":503}
  41. /*错误响应*/
  42. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  43. /*错误响应*/
  44. {"status":500,"message":"system error."}

9. 运营商延时图(pingByIsp)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=pingByIsp&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=pingByIsp&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":"new调度基本页面",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":"1.19",
  14. "y":"中国电信"
  15. },
  16. {
  17. "x":"0.0",
  18. "y":"电信通"
  19. }
  20. ],
  21. "params":"{"id":41128}"
  22. }
  23. ],
  24. "xAxis":[
  25. {
  26. "tickInterval":null,
  27. "type":null
  28. }
  29. ],
  30. "yAxis":[
  31. {
  32. "tickUnit":"秒"
  33. }
  34. ],
  35. "aggregateValue":"NaN"
  36. },
  37. "type":"bar"
  38. }
  39. }
  40. /*错误响应*/
  41. 没有数据
  42. /*错误响应*/
  43. {"status":503}
  44. /*错误响应*/
  45. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  46. /*错误响应*/
  47. {"status":500,"message":"system error."}

10. 省份延时图(pingByProv)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=pingByProv&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=pingByProv&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":"new调度基本页面",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":"1.17",
  14. "y":"北京"
  15. }
  16. ],
  17. "params":"{"id":41128}"
  18. }
  19. ],
  20. "xAxis":[
  21. {
  22. "tickInterval":null,
  23. "type":null
  24. }
  25. ],
  26. "yAxis":[
  27. {
  28. "tickUnit":"秒"
  29. }
  30. ],
  31. "aggregateValue":"NaN"
  32. },
  33. "type":"bar"
  34. }
  35. }
  36. /*错误响应*/
  37. 没有数据
  38. /*错误响应*/
  39. {"status":503}
  40. /*错误响应*/
  41. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  42. /*错误响应*/
  43. {"status":500,"message":"system error."}

11. 城市延时图(pingByLocation)

URL

/charts.do

示例URL1

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=pingByLocation&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4

示例URL2

http://192.168.5.197:8082/rpc/charts.do?formAction=graph&taskId=41128&chartId=pingByLocation&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值graph
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":"new调度基本页面",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":"1.17",
  14. "y":"北京市"
  15. }
  16. ],
  17. "params":"{"id":41128}"
  18. }
  19. ],
  20. "xAxis":[
  21. {
  22. "tickInterval":null,
  23. "type":null
  24. }
  25. ],
  26. "yAxis":[
  27. {
  28. "tickUnit":"秒"
  29. }
  30. ],
  31. "aggregateValue":"NaN"
  32. },
  33. "type":"bar"
  34. }
  35. }
  36. /*错误响应*/
  37. 没有数据
  38. /*错误响应*/
  39. {"status":503}
  40. /*错误响应*/
  41. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  42. /*错误响应*/
  43. {"status":500,"message":"system error."}

13. ping中国地图(pingByProvince)

URL

/perfByProvince.do

示例URL1

http://192.168.5.197:8082/rpc/perfByProvince.do?formAction=main&taskId=41128&chartId=pingByProvince&timeRangeMode=Absolute&timeFrom=2016-10-27 11:00&timeTo=2016-10-28 11:00&authkey=JraUZFype4

示例URL2

http://192.168.5.197:8082/rpc/perfByProvince.do?formAction=main&taskId=41128&chartId=pingByProvince&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值main
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":null,
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":494.5,
  14. "y":"北京"
  15. },
  16. {
  17. "x":494.5,
  18. "y":"北京市"
  19. }
  20. ],
  21. "params":"{"id":41128}"
  22. }
  23. ],
  24. "xAxis":[
  25. {
  26. "tickInterval":null,
  27. "type":null
  28. }
  29. ],
  30. "yAxis":[
  31. {
  32. "tickUnit":"秒"
  33. }
  34. ],
  35. "aggregateValue":"NaN"
  36. },
  37. "type":"bar"
  38. }
  39. }
  40. /*错误响应*/
  41. 没有数据
  42. /*错误响应*/
  43. {"status":503}
  44. /*错误响应*/
  45. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  46. /*错误响应*/
  47. {"status":500,"message":"system error."}

14. 事务全页面中国地图(pingByProvince)

URL

/perfByProvince.do

示例URL1

http://192.168.5.199:8082/rpc/perfByProvince.do?formAction=main&taskId=41128&chartId=perfByProvince&timeRangeMode=Absolute&timeFrom=2017-02-02 10:00&timeTo=2017-03-03 10:00&authkey=JraUZFype4&showSummary=1

示例URL2

http://192.168.5.199:8082/rpc/perfByProvince.do?formAction=main&taskId=41128&chartId=perfByProvince&timeRangeMode=Relative&relativeTimeRange=10080&authkey=JraUZFype4&showSummary=1

请求参数

参数 必选 类型 说明
authkey true string 由authkey接口获取
formAction true string 先传固定值main
taskId true string 任务id
chartId true string 图表id(chartId讲解(总表) 中查询)
timeRangeMode true string 绝对时间或相对时间(Absolute/Relative),如果设置成为Absolute需要添加timeFrom和timeTo的参数;如果设置成为Relative,只需要添加relativeTimeRange参数,默认结束时间为当前时间
timeFrom true string 开始时间(格式为:yyyy-MM-dd HH:mm 下同)
timeTo true string 结束时间
relativeTimeRange true string 时间间隔(分钟数)
showSummary false int 是否显示全页面(默认为0)

响应数据

  1. /*成功响应*/
  2. {
  3. "status":200,
  4. "data":{
  5. "chart":{
  6. "series":[
  7. {
  8. "id":null,
  9. "name":"全页面",
  10. "baseName":"首屏时间",
  11. "data":[
  12. {
  13. "x":2.738,
  14. "y":"北京"
  15. },
  16. {
  17. "x":2.698,
  18. "y":"陕西省"
  19. }
  20. ],
  21. "params":"{"id":50303}"
  22. }
  23. ],
  24. "xAxis":[
  25. {
  26. "tickInterval":null,
  27. "type":null
  28. }
  29. ],
  30. "yAxis":[
  31. {
  32. "tickUnit":"秒"
  33. }
  34. ],
  35. "aggregateValue":"NaN"
  36. },
  37. "type":"bar"
  38. }
  39. }
  40. /*错误响应*/
  41. 没有数据
  42. /*错误响应*/
  43. {"status":503}
  44. /*错误响应*/
  45. {"status":300} //没有权限看这个图或者系统暂不支持这个图:提示语:您没有权限查看该报表
  46. /*错误响应*/
  47. {"status":500,"message":"system error."}
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注