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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. "previous_page_id": {
  51. "bsonType": "string",
  52. "description": "上级页面ID,为空表示第一个页面, 对应uni-stat-pages._id"
  53. },
  54. "previous_page_duration": {
  55. "bsonType": "int",
  56. "description": "上级页面停留时间,单位秒,前端上报"
  57. },
  58. "previous_page_is_entry": {
  59. "bsonType": "int",
  60. "defaultValue": 0,
  61. "description": " 上级页面是否为入口页, 0否 1是",
  62. "enum": [{
  63. "text": "否",
  64. "value": 0
  65. }, {
  66. "text": "是",
  67. "value": 1
  68. }]
  69. },
  70. "query_string": {
  71. "bsonType": "string",
  72. "description": "页面参数"
  73. },
  74. "create_time": {
  75. "bsonType": "timestamp",
  76. "description": "创建时间"
  77. }
  78. }
  79. }