diff --git a/Readme.md b/Readme.md index c8c93a5..1f91286 100644 --- a/Readme.md +++ b/Readme.md @@ -1,7 +1,7 @@ 数据展示接口 -#### 1、返回可用的数据方法(按gameid排查) +#### 1、返回可用的数据方法(按gameid排查)及返回方法的字段定义 ##### 接口地址 @@ -30,72 +30,10 @@ http://154.8.214.202:5015/interface/company?status=0 | gamename | string | 是 | 游戏中文名 | | methods | String | 是 | 方法名 | | methods_name | String | 是 | 方法显示名 | +| result | json | 是 | 方法明细字段名称及显示名 | -##### 返回示例 -{ - "code": 200, - "message": [ - { - "appid": "BKadJbmZ", - "appkey": "undefined", - "contact": "pt", - "id": "1001", - "name": "kings", - "status": 0, - "tel": "1234", - "user": "None" - } - ] -} -#### 2、返回方法的字段定义 - -##### 接口地址 - -http://154.8.214.202:5015/interface/company - -##### 返回格式:json - -##### 请求方式:get - -##### 请求示范 - -http://154.8.214.202:5015/interface/company?status=0 - -##### 请求参数说明 - -| 名称 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | ------------------ | -| gameid | string | 是 | 查询的游戏ID | -| methods | string | 是 | 默认为6001(微信) | - -##### 返回参数说明 - -| 名称 | 类型 | 必填 | 说明 | -| ------------ | ------ | ---- | ---------- | -| gamename | string | 是 | 游戏中文名 | -| methods | String | 是 | 方法名 | -| methods_name | String | 是 | 方法显示名 | - -##### 返回示例 - -{ - "code": 200, - "message": [ - { - "appid": "BKadJbmZ", - "appkey": "undefined", - "contact": "pt", - "id": "1001", - "name": "kings", - "status": 0, - "tel": "1234", - "user": "None" - } - ] -} - -#### 3、按方法和日期返回某天的数据 +#### 2、按方法和日期返回某天的数据 ##### 接口地址 @@ -146,7 +84,7 @@ http://154.8.214.202:5015/interface/company?status=0 ] } -#### 4、按方法和日期返回某段时间的数据 +#### 3、按方法和日期返回某段时间的数据 ##### 接口地址 diff --git a/查询数据结构定义.md b/查询数据结构定义.md index c20ee5c..a38a209 100644 --- a/查询数据结构定义.md +++ b/查询数据结构定义.md @@ -36,6 +36,8 @@ base及retain实现存储在mysql中,脚本集中在ops_job处,本次不做 + + 2、以时间戳为主键的数据(间隔5/1分钟) 数据产生流程为每间隔一个时间执行统计脚本,数据写入influxdb,tag有gameid,channelid,serverid,date,通过接口返回数据给前端进行绘图展示。