update and add: 基础统计表增加跳出次数字段,增加周活跃用户表

This commit is contained in:
jiarongping 2022-02-24 17:48:50 +08:00
parent 374c597979
commit 7a063b30f9
4 changed files with 5 additions and 2 deletions

View File

@ -0,0 +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-stat-app-platforms._id","foreignKey":"opendb-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应opendb-stat-app-channels._id","foreignKey":"opendb-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"uuid":{"bsonType":"string","description":"客户端上报的用户标志"},"is_new":{"bsonType":"int","description":"是否为新用户","defaultValue":0,"enum":[{"text":"否","value":0},{"text":"是","value":1}]},"create_time":{"bsonType":"timestamp","description":"创建时间"}}}}

View File

@ -0,0 +1 @@
{"name":"@opendb/opendb-stat-active-user-weekly","version":"0.0.1","description":"opendb-stat-active-user-weekly","keywords":["活跃用户表"],"opendb":{"title":"活跃用户表","type":"collection","contributors":[{"name":"DCloud","email":"","homepage":"https://gitee.com/dcloud/opendb"}]}}

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-stat-app-platforms._id","foreignKey":"opendb-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应opendb-stat-app-channels._id","foreignKey":"opendb-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"total_users":{"bsonType":"int","description":"历史累计总用户数"},"new_user_count":{"bsonType":"int","description":"本时间段新增用户数"},"active_user_count":{"bsonType":"int","description":"本时间段活跃用户数"},"app_launch_count":{"bsonType":"int","description":"本时间段App启动或从后台切到前台的次数"},"error_count":{"bsonType":"int","description":"本时间段报错次数"},"duration":{"bsonType":"int","description":"时间段内,所有用户访问总时长,单位秒"},"avg_session_time":{"bsonType":"int","description":"次均停留时长,单位秒"},"avg_user_time":{"bsonType":"int","defaultValue":"人均停留时长,单位秒"},"visitor_avg_time":{"bsonType":"int","description":"人均停留时长"},"bounce_rate":{"bsonType":"double","description":"跳出率"},"retention":{"bsonType":"object","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-stat-app-platforms._id","foreignKey":"opendb-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应opendb-stat-app-channels._id","foreignKey":"opendb-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应opendb-stat-app-versions._id","foreignKey":"opendb-stat-app-versions._id"},"total_users":{"bsonType":"int","description":"历史累计总用户数"},"new_user_count":{"bsonType":"int","description":"本时间段新增用户数"},"active_user_count":{"bsonType":"int","description":"本时间段活跃用户数"},"app_launch_count":{"bsonType":"int","description":"本时间段App启动或从后台切到前台的次数"},"error_count":{"bsonType":"int","description":"本时间段报错次数"},"duration":{"bsonType":"int","description":"时间段内,所有用户访问总时长,单位秒"},"avg_session_time":{"bsonType":"int","description":"次均停留时长,单位秒"},"avg_user_time":{"bsonType":"int","defaultValue":"人均停留时长,单位秒"},"visitor_avg_time":{"bsonType":"int","description":"人均停留时长"},"bounce_times":{"bsonType":"int","description":"跳出次数"},"bounce_rate":{"bsonType":"double","description":"跳出率"},"retention":{"bsonType":"object","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

@ -13,5 +13,6 @@
"opendb-stat-page-result": {},
"opendb-stat-event-result": {},
"opendb-stat-error-result": {},
"opendb-stat-loyalty-result": {}
"opendb-stat-loyalty-result": {},
"opendb-stat-active-user-weekly": {}
}