uni-stat-result.schema.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. // 应用统计结果表
  2. {
  3. "bsonType": "object",
  4. "description": "存储统计汇总的会话数据包括不限于设备\/用户的数量、访问量、活跃度(日活、周活、月活)、留存率(日留存、周留存、月留存)、跳出率、访问时长等数据",
  5. "required": [],
  6. "permission": {
  7. "read": "'READ_UNI_STAT_RESULT' in auth.permission",
  8. "create": false,
  9. "update": false,
  10. "delete": false
  11. },
  12. "properties": {
  13. "_id": {
  14. "description": "ID,系统自动生成"
  15. },
  16. "appid": {
  17. "bsonType": "string",
  18. "description": "应用ID,对应opendb-app-list.appid",
  19. "foreignKey": "opendb-app-list.appid"
  20. },
  21. "platform_id": {
  22. "bsonType": "string",
  23. "description": "应用平台ID,对应uni-stat-app-platforms._id",
  24. "foreignKey": "uni-stat-app-platforms._id"
  25. },
  26. "channel_id": {
  27. "bsonType": "string",
  28. "description": "渠道\/场景值ID,对应uni-stat-app-channels._id",
  29. "foreignKey": "uni-stat-app-channels._id"
  30. },
  31. "version_id": {
  32. "bsonType": "string",
  33. "description": "应用版本ID,对应opendb-app-versions._id",
  34. "foreignKey": "opendb-app-versions._id"
  35. },
  36. "total_users": {
  37. "bsonType": "int",
  38. "description": "历史累计总用户数"
  39. },
  40. "new_user_count": {
  41. "bsonType": "int",
  42. "description": "本时间段新增用户数"
  43. },
  44. "active_user_count": {
  45. "bsonType": "int",
  46. "description": "本时间段活跃用户数"
  47. },
  48. "total_devices": {
  49. "bsonType": "int",
  50. "description": "历史累计总设备数"
  51. },
  52. "new_device_count": {
  53. "bsonType": "int",
  54. "description": "本时间段新增设备数"
  55. },
  56. "user_session_times": {
  57. "bsonType": "int",
  58. "description": "本时间段用户的会话次数"
  59. },
  60. "active_device_count": {
  61. "bsonType": "int",
  62. "description": "本时间段活跃设备数"
  63. },
  64. "app_launch_count": {
  65. "bsonType": "int",
  66. "description": "本时间段App启动或从后台切到前台的次数"
  67. },
  68. "error_count": {
  69. "bsonType": "int",
  70. "description": "本时间段报错次数"
  71. },
  72. "duration": {
  73. "bsonType": "int",
  74. "description": "时间段内,所有会话访问总时长,单位秒"
  75. },
  76. "user_duration": {
  77. "bsonType": "int",
  78. "description": "本次登录用户的会话总时长,单位为秒"
  79. },
  80. "avg_device_session_time": {
  81. "bsonType": "int",
  82. "description": "设备的次均停留时长,单位秒"
  83. },
  84. "avg_device_time": {
  85. "bsonType": "int",
  86. "defaultValue": "设均停留时长(平均每台设备的停留时长),单位秒"
  87. },
  88. "avg_user_session_time": {
  89. "bsonType": "int",
  90. "description": "用户的次均停留时长,单位秒"
  91. },
  92. "avg_user_time": {
  93. "bsonType": "int",
  94. "defaultValue": "人均停留时长(平均每个登录用户的停留时长),单位秒"
  95. },
  96. "bounce_times": {
  97. "bsonType": "int",
  98. "description": "跳出次数"
  99. },
  100. "bounce_rate": {
  101. "bsonType": "double",
  102. "description": "跳出率"
  103. },
  104. "retention": {
  105. "bsonType": "object",
  106. "description": "留存信息",
  107. "properties": {
  108. "active_user": {
  109. "bsonType": "object",
  110. "description": "活跃用户留存信息"
  111. },
  112. "new_user": {
  113. "bsonType": "object",
  114. "description": "新增用户留存信息"
  115. },
  116. "active_device": {
  117. "bsonType": "object",
  118. "description": "活跃设备留存信息"
  119. },
  120. "new_device": {
  121. "bsonType": "object",
  122. "description": "新增设备留存信息"
  123. }
  124. }
  125. },
  126. "dimension": {
  127. "bsonType": "string",
  128. "description": "统计范围 day:按天统计,hour:按小时统计",
  129. "enum": [{
  130. "text": "月",
  131. "value": "month"
  132. }, {
  133. "text": "周",
  134. "value": "week"
  135. }, {
  136. "text": "天",
  137. "value": "day"
  138. }, {
  139. "text": "小时",
  140. "value": "hour"
  141. }]
  142. },
  143. "stat_date": {
  144. "bsonType": "int",
  145. "description": "统计日期,格式yyyymmdd,例:20211201"
  146. },
  147. "start_time": {
  148. "bsonType": "timestamp",
  149. "description": "开始时间"
  150. },
  151. "end_time": {
  152. "bsonType": "timestamp",
  153. "description": "结束时间"
  154. }
  155. }
  156. }