uni-stat-page-result.schema.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // 页面统计结果表
  2. {
  3. "bsonType": "object",
  4. "description": "存储汇总的页面访问日志的数据",
  5. "required": [],
  6. "permission": {
  7. "read": "'READ_UNI_STAT_PAGE_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"
  19. },
  20. "platform_id": {
  21. "bsonType": "string",
  22. "description": "应用平台ID,对应uni-stat-app-platforms._id",
  23. "foreignKey": "uni-stat-app-platforms._id"
  24. },
  25. "channel_id": {
  26. "bsonType": "string",
  27. "description": "渠道\/场景值ID,对应uni-stat-app-channels._id",
  28. "foreignKey": "uni-stat-app-channels._id"
  29. },
  30. "version_id": {
  31. "bsonType": "string",
  32. "description": "应用版本ID,对应opendb-app-versions._id",
  33. "foreignKey": "opendb-app-versions._id"
  34. },
  35. "page_id": {
  36. "bsonType": "string",
  37. "description": "页面表ID,对应页面表ID,对应uni-stat-pages._id",
  38. "foreignKey": "uni-stat-pages._id"
  39. },
  40. "visit_times": {
  41. "bsonType": "int",
  42. "description": "访问次数"
  43. },
  44. "visit_devices": {
  45. "bsonType": "int",
  46. "description": "访问设备数"
  47. },
  48. "exit_times": {
  49. "bsonType": "int",
  50. "description": "退出次数"
  51. },
  52. "duration": {
  53. "bsonType": "int",
  54. "description": "访问总时长,单位秒"
  55. },
  56. "share_count": {
  57. "bsonType": "int",
  58. "description": "分享次数"
  59. },
  60. "entry_devices": {
  61. "bsonType": "int",
  62. "description": "当前页作为入口页的设备数"
  63. },
  64. "entry_users": {
  65. "bsonType": "int",
  66. "description": "当前页作为入口页的用户数"
  67. },
  68. "entry_count": {
  69. "bsonType": "int",
  70. "description": "当前页作为入口页的总次数"
  71. },
  72. "entry_duration": {
  73. "bsonType": "int",
  74. "description": "当前页作为入口时,本页面的总访问时长,单位秒"
  75. },
  76. "bounce_times": {
  77. "bsonType": "int",
  78. "description": "跳出次数"
  79. },
  80. "bounce_rate": {
  81. "bsonType": "double",
  82. "description": "跳出率"
  83. },
  84. "dimension": {
  85. "bsonType": "string",
  86. "description": "统计范围 day:按天统计,hour:按小时统计",
  87. "enum": [{
  88. "text": "月",
  89. "value": "month"
  90. }, {
  91. "text": "周",
  92. "value": "week"
  93. }, {
  94. "text": "天",
  95. "value": "day"
  96. }, {
  97. "text": "小时",
  98. "value": "hour"
  99. }]
  100. },
  101. "stat_date": {
  102. "bsonType": "int",
  103. "description": "统计日期,格式yyyymmdd,例:20211201"
  104. },
  105. "start_time": {
  106. "bsonType": "timestamp",
  107. "description": "开始时间"
  108. },
  109. "end_time": {
  110. "bsonType": "timestamp",
  111. "description": "结束时间"
  112. }
  113. }
  114. }