This commit is contained in:
linju 2022-06-02 12:48:20 +08:00
commit 6026bc15cc
2 changed files with 300 additions and 2 deletions

View File

@ -1 +1,169 @@
{"schema":{"bsonType":"object","description":"记录原生应用的崩溃日志","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"appid":{"bsonType":"string","description":"用户端上报的应用ID"},"version":{"bsonType":"string","description":"用户端上报的应用版本号。manifest.json中的version->name的值"},"platform":{"bsonType":"string","description":"用户端上报的平台code"},"channel":{"bsonType":"string","description":"用户端上报的渠道code/场景值"},"sdk_version":{"bsonType":"string","description":"基础库版本号"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"device_net":{"bsonType":"string","description":"设备网络型号wifi/3G/4G/"},"device_os":{"bsonType":"string","description":"系统版本iOS平台为系统版本号如15.1Android平台为API等级如30"},"device_os_version":{"bsonType":"string","description":"系统版本名称iOS平台与os字段一致Android平台为版本名称如5.1.1"},"device_vendor":{"bsonType":"string","description":"设备供应商 "},"device_model":{"bsonType":"string","description":"设备型号"},"device_is_root":{"bsonType":"int","description":"是否root1表示root0表示未root"},"device_os_name":{"bsonType":"string","description":"系统名称用于区别Android和鸿蒙仅Android支持"},"device_batt_level":{"bsonType":"int","description":"设备电池电量取值范围0-100仅Android支持"},"device_batt_temp":{"bsonType":"string","description":"电池温度仅Android支持"},"device_memory_use_size":{"bsonType":"int","description":"系统已使用内存单位为Byte仅Android支持"},"device_memory_total_size":{"bsonType":"int","description":"系统总内存单位为Byte仅Android支持"},"device_disk_use_size":{"bsonType":"int","description":"系统磁盘已使用大小单位为Byte仅Android支持"},"device_disk_total_size":{"bsonType":"int","description":"系统磁盘总大小单位为Byte仅Android支持"},"device_abis":{"bsonType":"string","description":"设备支持的CPU架构多个使用,分割如arm64-v8a,armeabi-v7a,armeabi仅Android支持"},"app_count":{"bsonType":"int","description":"运行的app个数包括运行的uni小程序数目。独立App时值为1"},"app_use_memory_size":{"bsonType":"int","description":"APP使用的内存量单位为Byte"},"app_webview_count":{"bsonType":"int","description":"打开Webview窗口的个数"},"app_use_duration":{"bsonType":"int","description":"APP使用时长单位为s"},"app_run_fore":{"bsonType":"int","description":"是否前台运行1表示前台运行0表示后台运行"},"package_name":{"bsonType":"string","description":"原生应用包名"},"package_version":{"bsonType":"string","description":"Android的apk版本名称iOS的ipa版本名称"},"page_url":{"bsonType":"string","description":"页面url"},"error_msg":{"bsonType":"string","description":"错误信息"},"create_time":{"bsonType":"timestamp","description":"客户端记录到的崩溃时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}}]}
{
"schema": {
"bsonType": "object",
"description": "记录原生应用的崩溃日志",
"required": [],
"permission": {
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"appid": {
"bsonType": "string",
"description": "用户端上报的应用ID"
},
"version": {
"bsonType": "string",
"description": "用户端上报的应用版本号。manifest.json中的version->name的值"
},
"platform": {
"bsonType": "string",
"description": "用户端上报的平台code"
},
"channel": {
"bsonType": "string",
"description": "用户端上报的渠道code/场景值"
},
"sdk_version": {
"bsonType": "string",
"description": "基础库版本号"
},
"device_id": {
"bsonType": "string",
"description": "客户端携带的设备标识"
},
"device_net": {
"bsonType": "string",
"description": "设备网络型号wifi/3G/4G/"
},
"device_os": {
"bsonType": "string",
"description": "系统版本iOS平台为系统版本号如15.1Android平台为API等级如30"
},
"device_os_version": {
"bsonType": "string",
"description": "系统版本名称iOS平台与os字段一致Android平台为版本名称如5.1.1"
},
"device_vendor": {
"bsonType": "string",
"description": "设备供应商 "
},
"device_model": {
"bsonType": "string",
"description": "设备型号"
},
"device_is_root": {
"bsonType": "int",
"description": "是否root1表示root0表示未root"
},
"device_os_name": {
"bsonType": "string",
"description": "系统名称用于区别Android和鸿蒙仅Android支持"
},
"device_batt_level": {
"bsonType": "int",
"description": "设备电池电量取值范围0-100仅Android支持"
},
"device_batt_temp": {
"bsonType": "string",
"description": "电池温度仅Android支持"
},
"device_memory_use_size": {
"bsonType": "int",
"description": "系统已使用内存单位为Byte仅Android支持"
},
"device_memory_total_size": {
"bsonType": "int",
"description": "系统总内存单位为Byte仅Android支持"
},
"device_disk_use_size": {
"bsonType": "int",
"description": "系统磁盘已使用大小单位为Byte仅Android支持"
},
"device_disk_total_size": {
"bsonType": "int",
"description": "系统磁盘总大小单位为Byte仅Android支持"
},
"device_abis": {
"bsonType": "string",
"description": "设备支持的CPU架构多个使用,分割如arm64-v8a,armeabi-v7a,armeabi仅Android支持"
},
"app_count": {
"bsonType": "int",
"description": "运行的app个数包括运行的uni小程序数目。独立App时值为1"
},
"app_use_memory_size": {
"bsonType": "int",
"description": "APP使用的内存量单位为Byte"
},
"app_webview_count": {
"bsonType": "int",
"description": "打开Webview窗口的个数"
},
"app_use_duration": {
"bsonType": "int",
"description": "APP使用时长单位为s"
},
"app_run_fore": {
"bsonType": "int",
"description": "是否前台运行1表示前台运行0表示后台运行"
},
"package_name": {
"bsonType": "string",
"description": "原生应用包名"
},
"package_version": {
"bsonType": "string",
"description": "Android的apk版本名称iOS的ipa版本名称"
},
"page_url": {
"bsonType": "string",
"description": "页面url"
},
"error_msg": {
"bsonType": "string",
"description": "错误信息"
},
"create_time": {
"bsonType": "timestamp",
"description": "客户端记录到的崩溃时间"
}
}
},
"index": [{
"IndexName": "index_search_time",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "create_time",
"Direction": "1"
}],
"MgoIsUnique": false
}
}, {
"IndexName": "index_search_normal",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "appid",
"Direction": "1"
}, {
"Name": "version",
"Direction": "1"
}, {
"Name": "platform",
"Direction": "1"
}, {
"Name": "channel",
"Direction": "1"
}, {
"Name": "create_time",
"Direction": "1"
}],
"MgoIsUnique": false
}
}]
}

View File

@ -1 +1,131 @@
{"schema":{"bsonType":"object","description":"存储汇总的错误日志的数据","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID系统自动生成"},"appid":{"bsonType":"string","description":"应用ID"},"platform_id":{"bsonType":"string","description":"应用平台ID对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_id":{"bsonType":"string","description":"渠道/场景值ID对应uni-stat-app-channels._id","foreignKey":"uni-stat-app-channels._id"},"version_id":{"bsonType":"string","description":"应用版本ID对应uni-stat-app-versions._id","foreignKey":"uni-stat-app-versions._id"},"hash":{"bsonType":"string","description":"错误hash码"},"msg":{"bsonType":"string","description":"错误信息"},"count":{"bsonType":"int","description":"报错次数"},"last_time":{"bsonType":"timestamp","description":"最近一次报错事件"},"dimension":{"bsonType":"string","description":"统计范围 day:按天统计hour:按小时统计","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"},{"text":"天","value":"day"},{"text":"小时","value":"hour"}]},"stat_date":{"bsonType":"int","description":"统计日期格式yyyymmdd例:20211201"},"start_time":{"bsonType":"timestamp","description":"开始时间"},"end_time":{"bsonType":"timestamp","description":"结束时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_normal","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"start_time","Direction":"1"}],"MgoIsUnique":false}}]}
{
"schema": {
"bsonType": "object",
"description": "存储汇总的错误日志的数据",
"required": [],
"permission": {
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"appid": {
"bsonType": "string",
"description": "应用ID"
},
"platform_id": {
"bsonType": "string",
"description": "应用平台ID对应uni-stat-app-platforms._id",
"foreignKey": "uni-stat-app-platforms._id"
},
"channel_id": {
"bsonType": "string",
"description": "渠道/场景值ID对应uni-stat-app-channels._id",
"foreignKey": "uni-stat-app-channels._id"
},
"version_id": {
"bsonType": "string",
"description": "应用版本ID对应uni-stat-app-versions._id",
"foreignKey": "uni-stat-app-versions._id"
},
"type": {
"bsonType": "string",
"description": "错误类型",
"enum": [{
"text": "前端js错误",
"value": "js"
}, {
"text": "原生应用崩溃错误",
"value": "crash"
}]
},
"hash": {
"bsonType": "string",
"description": "错误hash码"
},
"msg": {
"bsonType": "string",
"description": "错误信息"
},
"count": {
"bsonType": "int",
"description": "报错次数"
},
"app_launch_count": {
"bsonType": "int",
"description": "本时间段App启动或从后台切到前台的次数"
},
"last_time": {
"bsonType": "timestamp",
"description": "最近一次报错事件"
},
"dimension": {
"bsonType": "string",
"description": "统计范围 day:按天统计hour:按小时统计",
"enum": [{
"text": "月",
"value": "month"
}, {
"text": "周",
"value": "week"
}, {
"text": "天",
"value": "day"
}, {
"text": "小时",
"value": "hour"
}]
},
"stat_date": {
"bsonType": "int",
"description": "统计日期格式yyyymmdd例:20211201"
},
"start_time": {
"bsonType": "timestamp",
"description": "开始时间"
},
"end_time": {
"bsonType": "timestamp",
"description": "结束时间"
}
}
},
"index": [{
"IndexName": "index_search_time",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "start_time",
"Direction": "1"
}],
"MgoIsUnique": false
}
}, {
"IndexName": "index_search_normal",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "appid",
"Direction": "1"
}, {
"Name": "version_id",
"Direction": "1"
}, {
"Name": "platform_id",
"Direction": "1"
}, {
"Name": "channel_id",
"Direction": "1"
}, {
"Name": "dimension",
"Direction": "1"
}, {
"Name": "start_time",
"Direction": "1"
}],
"MgoIsUnique": false
}
}]
}