Authored by jack-xue

Bigdata 实时分析 修改请求方式

... ... @@ -12,13 +12,7 @@
| date | date | false |2016-12-26|时间类型(默认当天)|
#### 请求方法
post htttp://localhost:8080/flowsurvey/overview
#### 请求内容json
{
"date": "2016-12-16",
"type": "pc/ios/android/app/all"
}
get htttp://localhost:8080/flowsurvey/overview?type=all&date=2016-12-26
#### 响应内容json
{
... ... @@ -43,22 +37,10 @@
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| type | String | false |pc/wap/ios/android/all| 客户端类类型(默认全部)|
| index | Array | false | ["pv","uv","loss_rate","avg_pv","avg_stay"]|指标类型(默认全部指标)|
| index | String | false | pv,uv,loss_rate,avg_pv,avg_stay]|指标类型(默认全部指标)|
### 请求方法
post http://localhost:8080//flowsurvey/trend
### 请求内容json
{
"type": "pc/wap/ios/android/all",
"index": [
"pv",
"uv",
"loss_rate",
"avg_pv",
"avg_stay"
]
}
get http://localhost:8080/flowsurvey/trend?type=al&index=pv,uv
#### 响应内容json
{
... ... @@ -105,13 +87,7 @@
| date | date | false |2016-12-26|时间类型(默认当天)|
#### 请求方法
post htttp://localhost:8080/flowsurvey/resource_rank
#### 请求内容json
{
"date": "2016-12-26",
"type": "ios/android"
}
get htttp://localhost:8080/flowsurvey/resource_rank?type=ios&date=2016-12-26
#### 响应内容json(结果已排序 index 从大到小排列)
{
... ... @@ -151,14 +127,7 @@
| top | Int | false ||排名多少(默认前50)|
#### 请求方法
post htttp://localhost:8080/flowsurvey/action_rank
#### 请求内容json
{
"date": "2016-12-16",
"type": “brand/product”,
"top": 50
}
get htttp://localhost:8080/flowsurvey/action_rank?type=brand&date=2016-12-26&top=50
#### 响应内容json (同上 index 排序)
{
... ... @@ -194,13 +163,8 @@
| date | date | false |2016-12-26|时间类型(默认当天)|
#### 请求方法
post htttp://localhost:8080/flowsurvey/user_rank
get htttp://localhost:8080/flowsurvey/user_rank?type=terminal&date=2016-12-26
#### 请求内容json
{
"date": "2016-12-16",
"type": “terminal/city/gender/comp"
}
#### 响应内容json
##### terminal
... ...