uni-stat-page-logs.schema.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // 应用页面访问日志表
  2. {
  3. "bsonType": "object",
  4. "description": "记录上报的页面访问日志",
  5. "required": [],
  6. "permission": {
  7. "read": "'READ_UNI_STAT_PAGE_LOGS' 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. "version": {
  21. "bsonType": "string",
  22. "description": "用户端上报的应用版本号"
  23. },
  24. "platform": {
  25. "bsonType": "string",
  26. "description": "用户端上报的平台code"
  27. },
  28. "channel": {
  29. "bsonType": "string",
  30. "description": "用户端上报的渠道code\/场景值"
  31. },
  32. "device_id": {
  33. "bsonType": "string",
  34. "description": "客户端携带的设备标识"
  35. },
  36. "uid": {
  37. "bsonType": "string",
  38. "description": "用户编号, 对应uni-id-users._id"
  39. },
  40. "session_id": {
  41. "bsonType": "string",
  42. "description": "访问会话日志ID,对应uni-stat-session-logs._id",
  43. "foreignKey": "uni-stat-session-logs._id"
  44. },
  45. "page_id": {
  46. "bsonType": "string",
  47. "description": "当前页面ID,对应uni-stat-pages._id",
  48. "foreignKey": "uni-stat-pages._id"
  49. },
  50. "page_detail_id": {
  51. "bsonType": "string",
  52. "description": "页面详情表ID,对应uni-stat-page-details._id",
  53. "foreignKey": "uni-stat-page-details._id"
  54. },
  55. "previous_page_id": {
  56. "bsonType": "string",
  57. "description": "上级页面ID,为空表示第一个页面, 对应uni-stat-pages._id",
  58. "foreignKey": "uni-stat-pages._id"
  59. },
  60. "previous_page_detail_id": {
  61. "bsonType": "string",
  62. "description": "上级页面详情表ID,对应uni-stat-page-details._id",
  63. "foreignKey": "uni-stat-page-details._id"
  64. },
  65. "previous_page_duration": {
  66. "bsonType": "int",
  67. "description": "上级页面停留时间,单位秒,前端上报"
  68. },
  69. "previous_page_is_entry": {
  70. "bsonType": "int",
  71. "defaultValue": 0,
  72. "description": " 上级页面是否为入口页, 0否 1是",
  73. "enum": [{
  74. "text": "否",
  75. "value": 0
  76. }, {
  77. "text": "是",
  78. "value": 1
  79. }]
  80. },
  81. "query_string": {
  82. "bsonType": "string",
  83. "description": "页面参数"
  84. },
  85. "create_time": {
  86. "bsonType": "timestamp",
  87. "description": "创建时间"
  88. }
  89. }
  90. }