uni-stat-error-logs.schema.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // 应用错误日志表
  2. {
  3. "bsonType": "object",
  4. "description": "记录上报的应用运行错误日志",
  5. "required": [],
  6. "permission": {
  7. "read": "'READ_UNI_STAT_ERROR_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. "error_type": {
  33. "bsonType": "int",
  34. "description": "错误类型",
  35. "defaultValue": 0,
  36. "enum": [{
  37. "text": "未知",
  38. "value": 0
  39. }, {
  40. "text": "表示webview页面js异常(uni-app项目对应vue页面)",
  41. "value": 2
  42. }, {
  43. "text": "表示uni框架js异常(仅uni-app项目)",
  44. "value": 4
  45. }, {
  46. "text": "表示控制页js异常(仅uni-app项目)",
  47. "value": 5
  48. }, {
  49. "text": "表示nvue页面js异常(仅uni-app项目)",
  50. "value": 6
  51. }]
  52. },
  53. "device_id": {
  54. "bsonType": "string",
  55. "description": "客户端携带的设备标识"
  56. },
  57. "uid": {
  58. "bsonType": "string",
  59. "description": "用户编号, 对应uni-id-users._id"
  60. },
  61. "os": {
  62. "bsonType": "string",
  63. "description": "客户端操作系统"
  64. },
  65. "ua": {
  66. "bsonType": "string",
  67. "description": "客户端user-agent信息"
  68. },
  69. "space_id": {
  70. "bsonType": "string",
  71. "description": "服务空间编号"
  72. },
  73. "space_provider": {
  74. "bsonType": "string",
  75. "description": "服务空间提供商"
  76. },
  77. "sdk_version": {
  78. "bsonType": "string",
  79. "description": "小程序基础库版本号"
  80. },
  81. "platform_version": {
  82. "bsonType": "string",
  83. "description": "微信、支付宝宿主App的版本号"
  84. },
  85. "error_msg": {
  86. "bsonType": "string",
  87. "description": "错误信息"
  88. },
  89. "error_hash": {
  90. "bsonType": "string",
  91. "description": "错误hash码"
  92. },
  93. "page_url": {
  94. "bsonType": "string",
  95. "description": "页面url"
  96. },
  97. "create_time": {
  98. "bsonType": "timestamp",
  99. "description": "创建时间"
  100. }
  101. }
  102. }