uni-stat-app-crash-logs.schema.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // 原生应用崩溃日志表
  2. {
  3. "bsonType": "object",
  4. "description": "记录原生应用的崩溃日志",
  5. "required": [],
  6. "permission": {
  7. "read": "'READ_UNI_STAT_APP_CRASH_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": "用户端上报的应用版本号。manifest.json中的version->name的值"
  23. },
  24. "platform": {
  25. "bsonType": "string",
  26. "description": "用户端上报的平台code"
  27. },
  28. "channel": {
  29. "bsonType": "string",
  30. "description": "用户端上报的渠道code\/场景值"
  31. },
  32. "sdk_version": {
  33. "bsonType": "string",
  34. "description": "基础库版本号"
  35. },
  36. "device_id": {
  37. "bsonType": "string",
  38. "description": "客户端携带的设备标识"
  39. },
  40. "device_net": {
  41. "bsonType": "string",
  42. "description": "设备网络型号wifi\/3G\/4G\/"
  43. },
  44. "device_os": {
  45. "bsonType": "string",
  46. "description": "系统版本:iOS平台为系统版本号,如15.1;Android平台为API等级,如30"
  47. },
  48. "device_os_version": {
  49. "bsonType": "string",
  50. "description": "系统版本名称:iOS平台与os字段一致;Android平台为版本名称,如5.1.1"
  51. },
  52. "device_vendor": {
  53. "bsonType": "string",
  54. "description": "设备供应商 "
  55. },
  56. "device_model": {
  57. "bsonType": "string",
  58. "description": "设备型号"
  59. },
  60. "device_is_root": {
  61. "bsonType": "int",
  62. "description": "是否root:1表示root;0表示未root"
  63. },
  64. "device_os_name": {
  65. "bsonType": "string",
  66. "description": "系统名称:用于区别Android和鸿蒙,仅Android支持"
  67. },
  68. "device_batt_level": {
  69. "bsonType": "int",
  70. "description": "设备电池电量:取值范围0-100,仅Android支持"
  71. },
  72. "device_batt_temp": {
  73. "bsonType": "string",
  74. "description": "电池温度,仅Android支持"
  75. },
  76. "device_memory_use_size": {
  77. "bsonType": "int",
  78. "description": "系统已使用内存,单位为Byte,仅Android支持"
  79. },
  80. "device_memory_total_size": {
  81. "bsonType": "int",
  82. "description": "系统总内存,单位为Byte,仅Android支持"
  83. },
  84. "device_disk_use_size": {
  85. "bsonType": "int",
  86. "description": "系统磁盘已使用大小,单位为Byte,仅Android支持"
  87. },
  88. "device_disk_total_size": {
  89. "bsonType": "int",
  90. "description": "系统磁盘总大小,单位为Byte,仅Android支持"
  91. },
  92. "device_abis": {
  93. "bsonType": "string",
  94. "description": "设备支持的CPU架构:多个使用,分割,如arm64-v8a,armeabi-v7a,armeabi,仅Android支持"
  95. },
  96. "app_count": {
  97. "bsonType": "int",
  98. "description": "运行的app个数:包括运行的uni小程序数目。独立App时值为1"
  99. },
  100. "app_use_memory_size": {
  101. "bsonType": "int",
  102. "description": "APP使用的内存量,单位为Byte"
  103. },
  104. "app_webview_count": {
  105. "bsonType": "int",
  106. "description": "打开Webview窗口的个数"
  107. },
  108. "app_use_duration": {
  109. "bsonType": "int",
  110. "description": "APP使用时长:单位为s"
  111. },
  112. "app_run_fore": {
  113. "bsonType": "int",
  114. "description": "是否前台运行:1表示前台运行,0表示后台运行"
  115. },
  116. "package_name": {
  117. "bsonType": "string",
  118. "description": "原生应用包名"
  119. },
  120. "package_version": {
  121. "bsonType": "string",
  122. "description": "Android的apk版本名称;iOS的ipa版本名称"
  123. },
  124. "page_url": {
  125. "bsonType": "string",
  126. "description": "页面url"
  127. },
  128. "error_msg": {
  129. "bsonType": "string",
  130. "description": "错误信息"
  131. },
  132. "create_time": {
  133. "bsonType": "timestamp",
  134. "description": "客户端记录到的崩溃时间"
  135. }
  136. }
  137. }