@rzzx
2016-10-09T06:11:08.000000Z
字数 1810
阅读 971
App
文档中主机名需要参考以下配置:
内网:http://reportlocal.tingyun.com
外网:https://report.tingyun.com
URL
/highcharts-chart-data/LATEST/account/mobileApplications/charts/{chartId}.json
请求参数
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| _ty_auth_token | true | string | token从authlocal.tingyun.com:10886/auth/api/auth/login获取 |
| mobileAppId | true | string | 移动AppID |
| chartId | true | string | 图表ID,一开始定死 |
| timePeriod | true | string | 时间间隔 相差多少分钟 |
| endTime | false | string | 结束时间 格式如:yyyy-MM-dd HH:mm:ss |
| timeZone | false | String | 时区 |
chartId讲解(这个有一个总表)
| 图表标题 | chartId |
|---|---|
| TOP5 响应时间最慢主机 | mobile-application-top-host-performance |
| TOP5吞吐率最高主机 | mobile-application-top-host-throughput |
图表标题(写死)
响应数据
/*成功响应*/{"status":200,"data":{"chart":{"series":[{"name":"www.cesuba.com","color":"#5a4099","data":[{"x":1462982400000,"y":3.104},{"x":1464537600000,"y":0.505}],"params":"{"hostId":9}"},...],"aggregateValue":0.722,//平均值"xAxis":[{"tickInterval":"MM-dd HH:mm","type":"datetime"}],"yAxis":[{"tickUnit":"rpm"}]},"type":"area"}}
URL
highcharts-chart-data/LATEST/account/mobileKeyUrl/charts/{chartId}.json
请求参数
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| _ty_auth_token | true | string | token从authlocal.tingyun.com:10886/auth/api/auth/login获取 |
| mobileKeyUrlId | true | string | 移动AppID |
| chartId | true | string | 图表ID,一开始定死 |
| timePeriod | true | string | 时间间隔 相差多少分钟 |
| endTime | false | string | 结束时间 格式如:yyyy-MM-dd HH:mm:ss |
| timeZone | false | String | 时区 |
chartId讲解(这个有一个总表)
| 图表标题 | chartId |
|---|---|
| TOP5 响应时间最慢主机 | mobile-application-top-host-performance |
| TOP5吞吐率最高主机 | mobile-application-top-host-throughput |
图表标题(写死)
响应数据
/*成功响应*/{"status":200,"data":{"chart":{"series":[{"name":"www.cesuba.com","color":"#5a4099","data":[{"x":1462982400000,"y":3.104},{"x":1464537600000,"y":0.505}],"params":"{"hostId":9}"},...],"aggregateValue":0.722,//平均值"xAxis":[{"tickInterval":"MM-dd HH:mm","type":"datetime"}],"yAxis":[{"tickUnit":"rpm"}]},"type":"area"}}