update:uni统计页面统计表字段调整,数据表文档更新

This commit is contained in:
jiarongping 2022-04-07 11:26:57 +08:00
parent d594db64ce
commit 9daac2c6f9
2 changed files with 16 additions and 14 deletions

View File

@ -1 +1 @@
{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"platform_id":{"bsonType":"string","description":"应用平台ID对应opendb-app-platforms._id","foreignKey":"opendb-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应opendb-app-channels._id","foreignKey":"opendb-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"page_id":{"bsonType":"string","description":"页面表ID对应页面表ID对应opendb-stat-pages._id","foreignKey":"opendb-stat-pages._id"},"visit_times":{"bsonType":"int","description":"访问次数"},"visit_users":{"bsonType":"int","description":"访问用户数"},"exit_times":{"bsonType":"int","description":"退出次数"},"duration":{"bsonType":"int","description":"访问总时长,单位秒"},"share_count":{"bsonType":"int","description":"分享次数"},"entry_users":{"bsonType":"int","description":"当前页作为入口页的人数"},"entry_count":{"bsonType":"int","description":"当前页作为入口页的总次数"},"entry_duration":{"bsonType":"int","description":"当前页作为入口时,本页面的总访问时长,单位秒"},"bounce_rate":{"bsonType":"double","description":"跳出率"},"dimension":{"bsonType":"string","description":"统计范围 day:按天统计hour:按小时统计","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"},{"text":"天","value":"day"},{"text":"小时","value":"hour"}]},"stat_date":{"bsonType":"int","description":"统计日期格式yyyymmdd例:20211201"},"start_time":{"bsonType":"timestamp","description":"开始时间"},"end_time":{"bsonType":"timestamp","description":"结束时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}}]}
{"schema":{"bsonType":"object","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"platform_id":{"bsonType":"string","description":"应用平台ID对应opendb-app-platforms._id","foreignKey":"opendb-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应opendb-app-channels._id","foreignKey":"opendb-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"page_id":{"bsonType":"string","description":"页面表ID对应页面表ID对应opendb-stat-pages._id","foreignKey":"opendb-stat-pages._id"},"visit_times":{"bsonType":"int","description":"访问次数"},"visit_users":{"bsonType":"int","description":"访问用户数"},"exit_times":{"bsonType":"int","description":"退出次数"},"duration":{"bsonType":"int","description":"访问总时长,单位秒"},"share_count":{"bsonType":"int","description":"分享次数"},"entry_users":{"bsonType":"int","description":"当前页作为入口页的人数"},"entry_count":{"bsonType":"int","description":"当前页作为入口页的总次数"},"entry_duration":{"bsonType":"int","description":"当前页作为入口时,本页面的总访问时长,单位秒"},"bounce_times":{"bsonType":"int","description":"跳出次数"},"bounce_rate":{"bsonType":"double","description":"跳出率"},"dimension":{"bsonType":"string","description":"统计范围 day:按天统计hour:按小时统计","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"},{"text":"天","value":"day"},{"text":"小时","value":"hour"}]},"stat_date":{"bsonType":"int","description":"统计日期格式yyyymmdd例:20211201"},"start_time":{"bsonType":"timestamp","description":"开始时间"},"end_time":{"bsonType":"timestamp","description":"结束时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}}]}

View File

@ -11,6 +11,7 @@
| _id | string | - |ID系统自动生成 |
| code | string | - |平台代码,客户端上报 |
| name | string | - |平台名称,管理端显示 |
| order | int | - |序号,管理端排序使用 |
| create_time | timestamp| - |创建时间 |
| last_modify_time | timestamp| - |最后修改时间 |
@ -38,13 +39,13 @@
### 字段说明
| 字段名 | 类型 | 默认值 | 说明 |
| :--------: | :-----: |:-------: | :-------------------: |
| _id | string | - | ID系统自动生成 |
| platform | string | - | 应用平台对应opendb-stat-app-platforms.code|
| scene_code | string | - | 场景代码 |
| scene_name | string | - | 场景名称 |
| create_time | timestamp | - | 创建时间 |
| 字段名 | 类型 | 默认值 | 说明 |
| :--------: | :-----: |:-------: | :-------------------: |
| _id | string | - | ID系统自动生成 |
| platform | string | - | 应用平台对应opendb-stat-app-platforms.code |
| scene_code | string | - | 场景代码 |
| scene_name | string | - | 场景名称 |
| create_time | timestamp | - | 创建时间 |
## uni统计-应用版本表 opendb-stat-app-versions
@ -172,8 +173,8 @@
| uuid | string | - | 客户端上报的用户标志 |
| session_id | string | - | 访问会话日志ID对应opendb-stat-session-logs._id |
| current_page_id | string | - | 当前页面ID对应opendb-stat-pages._id |
| previous_page_id | string | - | 上级一个页面ID为空表示第一个页面, 对应opendb-stat-pages._id |
| previous_page_duration| int | - | 上级页面停留时间,单位秒,前端上报 |
| previous_page_id | string | - | 上级一个页面ID为空表示第一个页面, 对应opendb-stat-pages._id|
| previous_page_duration| int | - | 上级页面停留时间,单位秒,前端上报 |
| previous_page_is_entry| int | 0 | 上级页面是否为入口页, 0否 1是 |is_outsource
| create_time | timestamp | - | 创建时间 |
@ -209,8 +210,8 @@
| uuid | string | - | 客户端上报的用户标志 |
| sdk_version | string | - | 小程序基础库版本号 |
| platform_version | string | - | 微信、支付宝宿主App的版本号 |
| errod_msg | string | - | 错误信息 |
| errod_hash | string | - | 错误hash码 |
| error_msg | string | - | 错误信息 |
| error_hash | string | - | 错误hash码 |
| create_time | timestamp | - | 创建时间 |
@ -238,11 +239,11 @@
| active_user_count| int | - | 本时间段活跃用户数 |
| app_launch_count | int | - | 本时间段App启动或从后台切到前台的次数 |
| page_visit_count | int | - | 本时间段内PV的概念
| errod_count | int | - | 本时间段报错次数 |
| count | int | - | 本时间段报错次数 |
| duration | int | - | 本时间段内,所有用户访问总时长,单位秒 |
| avg_session_time | int | - | 次均停留时长,单位秒 |
| avg_used_time | int | - | 人均停留时长,单位秒 |
| bounce_times | int | - | 跳出次数 |
| bounce_times | int | - | 跳出次数 |
| bounce_rate | double | - | 跳出率 |
| retention | object | - | 用户留存信息 |
| dimension | string | - | 统计范围 day:按天统计hour:按小时统计, week按周统计month按月统计 |
@ -381,6 +382,7 @@
| entry_users | int | - | 当前页作为入口页的人数 |
| entry_count | int | - | 当前页作为入口页的总次数 |
| entry_duration | int | - | 当前页作为入口时,本页面的总访问时长,单位秒 |
| bounce_times | int | - | 跳出次数 |
| bounce_rate | double | - | 跳出率 |
| dimension | string | - | 统计范围 day:按天统计hour:按小时统计, week按周统计month按月统计 |
| stat_date | int | - | 统计日期格式yyyymmdd例:20211201 |