uni-stat-user-session-logs.schema.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // 用户会话日志表
  2. {
  3. "bsonType": "object",
  4. "description": "记录登录用户的会话日志",
  5. "required": [],
  6. "permission": {
  7. "read": false,
  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. "session_id": {
  33. "bsonType": "string",
  34. "description": "访问会话日志ID,对应uni-stat-session-logs._id",
  35. "foreignKey": "uni-stat-session-logs._id"
  36. },
  37. "uid": {
  38. "bsonType": "string",
  39. "description": "本次会话最终访问用户的ID, uni-id-users._id"
  40. },
  41. "last_visit_time": {
  42. "bsonType": "timestamp",
  43. "description": "用户最后一次访问时间"
  44. },
  45. "entry_page_id": {
  46. "bsonType": "string",
  47. "description": "本次会话入口页面ID, 同uni-stat-pagesd"
  48. },
  49. "exit_page_id": {
  50. "bsonType": "string",
  51. "description": "本次会话退出页面ID, 同uni-stat-pagesd"
  52. },
  53. "page_count": {
  54. "bsonType": "int",
  55. "description": "本次会话浏览的页面数"
  56. },
  57. "event_count": {
  58. "bsonType": "int",
  59. "description": "本次会话产生的事件数"
  60. },
  61. "duration": {
  62. "bsonType": "int",
  63. "description": "本次会话时长,单位为秒,服务端计算"
  64. },
  65. "is_finish": {
  66. "bsonType": "int",
  67. "defaultValue": 0,
  68. "description": "本次会话是否结束,0:否,1是",
  69. "enum": [{
  70. "text": "否",
  71. "value": 0
  72. }, {
  73. "text": "是",
  74. "value": 1
  75. }]
  76. },
  77. "create_time": {
  78. "bsonType": "timestamp",
  79. "description": "创建时间"
  80. }
  81. }
  82. }