uni-stat-event-logs.schema.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. // 应用事件日志表
  2. {
  3. "bsonType": "object",
  4. "description": "记录上报的事件日志",
  5. "required": [],
  6. "permission": {
  7. "read": "'READ_UNI_STAT_EVENT_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. "foreignKey": "uni-stat-app-platforms.code",
  27. "description": "客户端上报的平台code"
  28. },
  29. "channel": {
  30. "bsonType": "string",
  31. "description": "客户端上报的渠道code\/场景值"
  32. },
  33. "device_id": {
  34. "bsonType": "string",
  35. "description": "客户端携带的设备标识"
  36. },
  37. "uid": {
  38. "bsonType": "string",
  39. "description": "用户编号, 对应uni-id-users._id"
  40. },
  41. "session_id": {
  42. "bsonType": "string",
  43. "description": "访问会话日志ID,对应uni-stat-session-logs._id",
  44. "foreignKey": "uni-stat-session-logs._id"
  45. },
  46. "page_id": {
  47. "bsonType": "string",
  48. "description": "页面ID,对应uni-stat-pages._id",
  49. "foreignKey": "uni-stat-pages._id"
  50. },
  51. "event_key": {
  52. "bsonType": "string",
  53. "description": "客户端上报的key"
  54. },
  55. "param": {
  56. "bsonType": "string",
  57. "description": "事件参数"
  58. },
  59. "sdk_version": {
  60. "bsonType": "string",
  61. "description": "基础库版本号"
  62. },
  63. "platform_version": {
  64. "bsonType": "string",
  65. "description": "平台版本,如微信、支付宝宿主App版本号"
  66. },
  67. "device_os": {
  68. "bsonType": "int",
  69. "description": "设备系统编号,1:安卓,2:iOS,3:PC"
  70. },
  71. "device_os_version": {
  72. "bsonType": "string",
  73. "description": "设备系统版本"
  74. },
  75. "device_net": {
  76. "bsonType": "string",
  77. "description": "设备网络型号wifi\/3G\/4G\/"
  78. },
  79. "device_vendor": {
  80. "bsonType": "string",
  81. "description": "设备供应商 "
  82. },
  83. "device_model": {
  84. "bsonType": "string",
  85. "description": "设备型号"
  86. },
  87. "device_language": {
  88. "bsonType": "string",
  89. "description": "设备语言包"
  90. },
  91. "device_pixel_ratio": {
  92. "bsonType": "string",
  93. "description": "设备像素比 "
  94. },
  95. "device_window_width": {
  96. "bsonType": "string",
  97. "description": "设备窗口宽度 "
  98. },
  99. "device_window_height": {
  100. "bsonType": "string",
  101. "description": "设备窗口高度"
  102. },
  103. "device_screen_width": {
  104. "bsonType": "string",
  105. "description": "设备屏幕宽度"
  106. },
  107. "device_screen_height": {
  108. "bsonType": "string",
  109. "description": "设备屏幕高度"
  110. },
  111. "create_time": {
  112. "bsonType": "timestamp",
  113. "description": "创建时间"
  114. }
  115. }
  116. }