uni-stat-page-detail-result.schema.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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,对应uni-stat-pages._id",
  38. "foreignKey": "uni-stat-pages._id"
  39. },
  40. "page_detail_id": {
  41. "bsonType": "string",
  42. "description": "页面详情表ID,对应uni-stat-page-details._id",
  43. "foreignKey": "uni-stat-page-details._id"
  44. },
  45. "visit_times": {
  46. "bsonType": "int",
  47. "description": "访问次数"
  48. },
  49. "visit_devices": {
  50. "bsonType": "int",
  51. "description": "访问设备数"
  52. },
  53. "visit_users": {
  54. "bsonType": "int",
  55. "description": "访问用户数"
  56. },
  57. "duration": {
  58. "bsonType": "int",
  59. "description": "访问总时长,单位秒"
  60. },
  61. "share_count": {
  62. "bsonType": "int",
  63. "description": "分享次数"
  64. },
  65. "dimension": {
  66. "bsonType": "string",
  67. "description": "统计范围 day:按天统计,hour:按小时统计",
  68. "enum": [{
  69. "text": "月",
  70. "value": "month"
  71. }, {
  72. "text": "周",
  73. "value": "week"
  74. }, {
  75. "text": "天",
  76. "value": "day"
  77. }, {
  78. "text": "小时",
  79. "value": "hour"
  80. }]
  81. },
  82. "stat_date": {
  83. "bsonType": "int",
  84. "description": "统计日期,格式yyyymmdd,例:20211201"
  85. },
  86. "start_time": {
  87. "bsonType": "timestamp",
  88. "description": "开始时间"
  89. },
  90. "end_time": {
  91. "bsonType": "timestamp",
  92. "description": "结束时间"
  93. }
  94. }
  95. }