uni-stat-error-result.schema.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // 错误数据统计结果表
  2. {
  3. "bsonType": "object",
  4. "description": "存储汇总的错误日志的数据",
  5. "required": [],
  6. "permission": {
  7. "read": "'READ_UNI_STAT_ERROR_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. "type": {
  36. "bsonType": "string",
  37. "description": "错误类型",
  38. "enum": [{
  39. "text": "前端js错误",
  40. "value": "js"
  41. }, {
  42. "text": "原生应用崩溃错误",
  43. "value": "crash"
  44. }]
  45. },
  46. "hash": {
  47. "bsonType": "string",
  48. "description": "错误hash码"
  49. },
  50. "msg": {
  51. "bsonType": "string",
  52. "description": "错误信息"
  53. },
  54. "count": {
  55. "bsonType":"int",
  56. "description":"报错次数"
  57. },
  58. "app_launch_count": {
  59. "bsonType": "int",
  60. "description": "本时间段App启动或从后台切到前台的次数"
  61. },
  62. "last_time": {
  63. "bsonType":"timestamp",
  64. "description":"最近一次报错事件"
  65. },
  66. "dimension": {
  67. "bsonType": "string",
  68. "description": "统计范围 day:按天统计,hour:按小时统计",
  69. "enum": [{
  70. "text": "月",
  71. "value": "month"
  72. }, {
  73. "text": "周",
  74. "value": "week"
  75. },{
  76. "text": "天",
  77. "value": "day"
  78. }, {
  79. "text": "小时",
  80. "value": "hour"
  81. }]
  82. },
  83. "stat_date":{
  84. "bsonType":"int",
  85. "description":"统计日期,格式yyyymmdd,例:20211201"
  86. },
  87. "start_time":{
  88. "bsonType":"timestamp",
  89. "description":"开始时间"
  90. },
  91. "end_time":{
  92. "bsonType":"timestamp",
  93. "description":"结束时间"
  94. }
  95. }
  96. }