uni-stat-event-result.schema.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // 事件统计结果表
  2. {
  3. "bsonType": "object",
  4. "description": "存储汇总的事件日志的数据",
  5. "required": [],
  6. "permission": {
  7. "read": "'READ_UNI_STAT_EVENT_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. "event_key": {
  36. "bsonType": "string",
  37. "description": "事件key,对应uni-stat-events.event_key",
  38. "foreignKey": "uni-stat-events.event_key"
  39. },
  40. "event_count": {
  41. "bsonType": "int",
  42. "description": "触发次数"
  43. },
  44. "device_count": {
  45. "bsonType": "int",
  46. "description": "触发该事件的设备数"
  47. },
  48. "user_count": {
  49. "bsonType": "int",
  50. "description": "触发该事件的用户数"
  51. },
  52. "dimension": {
  53. "bsonType": "string",
  54. "description": "统计范围 day:按天统计,hour:按小时统计",
  55. "enum": [{
  56. "text": "月",
  57. "value": "month"
  58. }, {
  59. "text": "周",
  60. "value": "week"
  61. }, {
  62. "text": "天",
  63. "value": "day"
  64. }, {
  65. "text": "小时",
  66. "value": "hour"
  67. }]
  68. },
  69. "stat_date": {
  70. "bsonType": "int",
  71. "description": "统计日期,格式yyyymmdd,例:20211201"
  72. },
  73. "start_time": {
  74. "bsonType": "timestamp",
  75. "description": "开始时间"
  76. },
  77. "end_time": {
  78. "bsonType": "timestamp",
  79. "description": "结束时间"
  80. }
  81. }
  82. }