From 9daac2c6f93117757193c3079fd910c9bf729ed1 Mon Sep 17 00:00:00 2001 From: jiarongping Date: Thu, 7 Apr 2022 11:26:57 +0800 Subject: [PATCH] =?UTF-8?q?update:uni=E7=BB=9F=E8=AE=A1=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=A1=A8=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= =?UTF-8?q?,=E6=95=B0=E6=8D=AE=E8=A1=A8=E6=96=87=E6=A1=A3=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../opendb-stat-page-result/collection.json | 2 +- opendb-stat.md | 28 ++++++++++--------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/collection/opendb-stat-page-result/collection.json b/collection/opendb-stat-page-result/collection.json index 7cb0426..6789c87 100644 --- a/collection/opendb-stat-page-result/collection.json +++ b/collection/opendb-stat-page-result/collection.json @@ -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}}]} \ No newline at end of file +{"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}}]} \ No newline at end of file diff --git a/opendb-stat.md b/opendb-stat.md index 2e261d4..56bf2c8 100644 --- a/opendb-stat.md +++ b/opendb-stat.md @@ -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 |