mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-10 11:09:44 +08:00
将uni-stat表格式化代码(未改动任何字段以及文本,纯格式化代码)
This commit is contained in:
parent
b1d5fa8ac0
commit
469c41e74f
@ -1 +1,175 @@
|
||||
{"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,对应opendb-app-versions._id","foreignKey":"opendb-app-versions._id"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"is_new":{"bsonType":"int","description":"是否为新设备","defaultValue":0,"enum":[{"text":"否","value":0},{"text":"是","value":1}]},"dimension":{"bsonType":"string","description":"时间范围 week:周,month:月","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"}]},"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_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"device_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_new","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"is_new","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"},{"Name":"device_id","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,对应opendb-app-versions._id",
|
||||
"foreignKey": "opendb-app-versions._id"
|
||||
},
|
||||
"device_id": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端携带的设备标识"
|
||||
},
|
||||
"is_new": {
|
||||
"bsonType": "int",
|
||||
"description": "是否为新设备",
|
||||
"defaultValue": 0,
|
||||
"enum": [{
|
||||
"text": "否",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"text": "是",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"dimension": {
|
||||
"bsonType": "string",
|
||||
"description": "时间范围 week:周,month:月",
|
||||
"enum": [{
|
||||
"text": "月",
|
||||
"value": "month"
|
||||
},
|
||||
{
|
||||
"text": "周",
|
||||
"value": "week"
|
||||
}
|
||||
]
|
||||
},
|
||||
"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_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform_id",
|
||||
"Direction": "1"
|
||||
},
|
||||
{ {
|
||||
"Name": "channel_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "dimension",
|
||||
"Direction": "1"
|
||||
},
|
||||
{
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}
|
||||
],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_user",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
{ "Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform_id",
|
||||
"Direction": "1"
|
||||
},
|
||||
{
|
||||
"Name": "channel_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "device_id",
|
||||
"Direction": "1"
|
||||
},
|
||||
{
|
||||
"Name": "dimension",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}
|
||||
],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_new",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform_id",
|
||||
"Direction": "1"
|
||||
},
|
||||
{
|
||||
"Name": "channel_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "is_new",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "dimension",
|
||||
"Direction": "1"
|
||||
},
|
||||
{ {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "device_id",
|
||||
"Direction": "1"
|
||||
}
|
||||
],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1 +1,117 @@
|
||||
{"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,对应opendb-app-versions._id","foreignKey":"opendb-app-versions._id"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"dimension":{"bsonType":"string","description":"时间范围 week:周,month:月","enum":[{"text":"月","value":"month"},{"text":"周","value":"week"}]},"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_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"dimension","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version_id","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_id","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"dimension","Direction":"1"},{"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"
|
||||
},
|
||||
"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,对应opendb-app-versions._id",
|
||||
"foreignKey": "opendb-app-versions._id"
|
||||
},
|
||||
"uid": {
|
||||
"bsonType": "string",
|
||||
"description": "用户编号, 对应uni-id-users._id"
|
||||
},
|
||||
"dimension": {
|
||||
"bsonType": "string",
|
||||
"description": "时间范围 week:周,month:月",
|
||||
"enum": [{
|
||||
"text": "月",
|
||||
"value": "month"
|
||||
}, {
|
||||
"text": "周",
|
||||
"value": "week"
|
||||
}]
|
||||
},
|
||||
"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_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "dimension",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_user",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "uid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "dimension",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,60 @@
|
||||
{"schema":{"bsonType":"object","description":"提供渠道和场景值数据","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"统计应用ID,对应opendb-app-list.appid","foreignKey":"opendb-app-list.appid"},"platform_id":{"bsonType":"string","description":"应用平台,对应uni-stat-app-platforms._id","foreignKey":"uni-stat-app-platforms._id"},"channel_code":{"bsonType":"int","description":"客户端上报的渠道代码"},"channel_name":{"bsonType":"string","description":"渠道名称,用户可编辑"},"create_time":{"bsonType":"timestamp","description":"创建时间"},"last_modify_time":{"bsonType":"timestamp","description":"最后修改时间"}}},"index":[{"IndexName":"index_search_channel","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"platform_id","Direction":"1"},{"Name":"channel_code","Direction":"1"}],"MgoIsUnique":true}}]}
|
||||
{
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"description": "提供渠道和场景值数据",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"appid": {
|
||||
"bsonType": "string",
|
||||
"description": "统计应用ID,对应opendb-app-list.appid",
|
||||
"foreignKey": "opendb-app-list.appid"
|
||||
},
|
||||
"platform_id": {
|
||||
"bsonType": "string",
|
||||
"description": "应用平台,对应uni-stat-app-platforms._id",
|
||||
"foreignKey": "uni-stat-app-platforms._id"
|
||||
},
|
||||
"channel_code": {
|
||||
"bsonType": "int",
|
||||
"description": "客户端上报的渠道代码"
|
||||
},
|
||||
"channel_name": {
|
||||
"bsonType": "string",
|
||||
"description": "渠道名称,用户可编辑"
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
},
|
||||
"last_modify_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "最后修改时间"
|
||||
}
|
||||
}
|
||||
},
|
||||
"index": [{
|
||||
"IndexName": "index_search_channel",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel_code",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": true
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -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.1;Android平台为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":"是否root:1表示root;0表示未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}}]}
|
||||
{
|
||||
"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.1;Android平台为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": "是否root:1表示root;0表示未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
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,57 @@
|
||||
{"schema":{"bsonType":"object","description":"提供应用的平台字典","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"code":{"bsonType":"string","description":"平台代码,前端上报"},"name":{"bsonType":"string","description":"平台名称,管理端显示"},"order":{"bsonType":"int","description":"序号,前端页面排序使用","defaultValue":0},"enable":{"bsonType":"bool","description":"是否启动","defaultValue":true,"enum":[{"text":"否","value":false},{"text":"是","value":true}]},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_platforms","MgoKeySchema":{"MgoIndexKeys":[{"Name":"code","Direction":"1"}],"MgoIsUnique":true}}]}
|
||||
{
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"description": "提供应用的平台字典",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"code": {
|
||||
"bsonType": "string",
|
||||
"description": "平台代码,前端上报"
|
||||
},
|
||||
"name": {
|
||||
"bsonType": "string",
|
||||
"description": "平台名称,管理端显示"
|
||||
},
|
||||
"order": {
|
||||
"bsonType": "int",
|
||||
"description": "序号,前端页面排序使用",
|
||||
"defaultValue": 0
|
||||
},
|
||||
"enable": {
|
||||
"bsonType": "bool",
|
||||
"description": "是否启动",
|
||||
"defaultValue": true,
|
||||
"enum": [{
|
||||
"text": "否",
|
||||
"value": false
|
||||
}, {
|
||||
"text": "是",
|
||||
"value": true
|
||||
}]
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
}
|
||||
}
|
||||
},
|
||||
"index": [{
|
||||
"IndexName": "index_search_platforms",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "code",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": true
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,137 @@
|
||||
{"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":"用户端上报的应用版本号"},"platform":{"bsonType":"string","description":"用户端上报的平台code"},"channel":{"bsonType":"string","description":"用户端上报的渠道code/场景值"},"error_type":{"bsonType":"int","description":"错误类型","defaultValue":0,"enum":[{"text":"未知","value":0},{"text":"表示webview页面js异常(uni-app项目对应vue页面)","value":2},{"text":"表示uni框架js异常(仅uni-app项目)","value":4},{"text":"表示控制页js异常(仅uni-app项目)","value":5},{"text":"表示nvue页面js异常(仅uni-app项目)","value":6}]},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"os":{"bsonType":"string","description":"客户端操作系统"},"ua":{"bsonType":"string","description":"客户端user-agent信息"},"space_id":{"bsonType":"string","description":"服务空间编号"},"space_provider":{"bsonType":"string","description":"服务空间提供商"},"sdk_version":{"bsonType":"string","description":"小程序基础库版本号"},"platform_version":{"bsonType":"string","description":"微信、支付宝宿主App的版本号"},"error_msg":{"bsonType":"string","description":"错误信息"},"error_hash":{"bsonType":"string","description":"错误hash码"},"page_url":{"bsonType":"string","description":"页面url"},"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":"hash","Direction":"1"},{"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": "用户端上报的应用版本号"
|
||||
},
|
||||
"platform": {
|
||||
"bsonType": "string",
|
||||
"description": "用户端上报的平台code"
|
||||
},
|
||||
"channel": {
|
||||
"bsonType": "string",
|
||||
"description": "用户端上报的渠道code/场景值"
|
||||
},
|
||||
"error_type": {
|
||||
"bsonType": "int",
|
||||
"description": "错误类型",
|
||||
"defaultValue": 0,
|
||||
"enum": [{
|
||||
"text": "未知",
|
||||
"value": 0
|
||||
}, {
|
||||
"text": "表示webview页面js异常(uni-app项目对应vue页面)",
|
||||
"value": 2
|
||||
}, {
|
||||
"text": "表示uni框架js异常(仅uni-app项目)",
|
||||
"value": 4
|
||||
}, {
|
||||
"text": "表示控制页js异常(仅uni-app项目)",
|
||||
"value": 5
|
||||
}, {
|
||||
"text": "表示nvue页面js异常(仅uni-app项目)",
|
||||
"value": 6
|
||||
}]
|
||||
},
|
||||
"device_id": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端携带的设备标识"
|
||||
},
|
||||
"uid": {
|
||||
"bsonType": "string",
|
||||
"description": "用户编号, 对应uni-id-users._id"
|
||||
},
|
||||
"os": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端操作系统"
|
||||
},
|
||||
"ua": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端user-agent信息"
|
||||
},
|
||||
"space_id": {
|
||||
"bsonType": "string",
|
||||
"description": "服务空间编号"
|
||||
},
|
||||
"space_provider": {
|
||||
"bsonType": "string",
|
||||
"description": "服务空间提供商"
|
||||
},
|
||||
"sdk_version": {
|
||||
"bsonType": "string",
|
||||
"description": "小程序基础库版本号"
|
||||
},
|
||||
"platform_version": {
|
||||
"bsonType": "string",
|
||||
"description": "微信、支付宝宿主App的版本号"
|
||||
},
|
||||
"error_msg": {
|
||||
"bsonType": "string",
|
||||
"description": "错误信息"
|
||||
},
|
||||
"error_hash": {
|
||||
"bsonType": "string",
|
||||
"description": "错误hash码"
|
||||
},
|
||||
"page_url": {
|
||||
"bsonType": "string",
|
||||
"description": "页面url"
|
||||
},
|
||||
"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": "hash",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -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,对应opendb-app-versions._id","foreignKey":"opendb-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}}]}
|
||||
{
|
||||
"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,对应opendb-app-versions._id",
|
||||
"foreignKey": "opendb-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
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,178 @@
|
||||
{"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":"客户端上报的应用版本号"},"platform":{"bsonType":"string","foreignKey":"uni-stat-app-platforms.code","description":"客户端上报的平台code"},"channel":{"bsonType":"string","description":"客户端上报的渠道code/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"session_id":{"bsonType":"string","description":"访问会话日志ID,对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"page_id":{"bsonType":"string","description":"页面ID,对应uni-stat-pages._id","foreignKey":"uni-stat-pages._id"},"event_key":{"bsonType":"string","description":"客户端上报的key"},"param":{"bsonType":"string","description":"事件参数"},"sdk_version":{"bsonType":"string","description":"基础库版本号"},"platform_version":{"bsonType":"string","description":"平台版本,如微信、支付宝宿主App版本号"},"device_os":{"bsonType":"int","description":"设备系统编号,1:安卓,2:iOS,3:PC"},"device_os_version":{"bsonType":"string","description":"设备系统版本"},"device_net":{"bsonType":"string","description":"设备网络型号wifi/3G/4G/"},"device_vendor":{"bsonType":"string","description":"设备供应商 "},"device_model":{"bsonType":"string","description":"设备型号"},"device_language":{"bsonType":"string","description":"设备语言包"},"device_pixel_ratio":{"bsonType":"string","description":"设备像素比 "},"device_window_width":{"bsonType":"string","description":"设备窗口宽度 "},"device_window_height":{"bsonType":"string","description":"设备窗口高度"},"device_screen_width":{"bsonType":"string","description":"设备屏幕宽度"},"device_screen_height":{"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":"event_key","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"event_key","Direction":"1"},{"Name":"uid","Direction":"1"},{"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": "客户端上报的应用版本号"
|
||||
},
|
||||
"platform": {
|
||||
"bsonType": "string",
|
||||
"foreignKey": "uni-stat-app-platforms.code",
|
||||
"description": "客户端上报的平台code"
|
||||
},
|
||||
"channel": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端上报的渠道code/场景值"
|
||||
},
|
||||
"device_id": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端携带的设备标识"
|
||||
},
|
||||
"uid": {
|
||||
"bsonType": "string",
|
||||
"description": "用户编号, 对应uni-id-users._id"
|
||||
},
|
||||
"session_id": {
|
||||
"bsonType": "string",
|
||||
"description": "访问会话日志ID,对应uni-stat-session-logs._id",
|
||||
"foreignKey": "uni-stat-session-logs._id"
|
||||
},
|
||||
"page_id": {
|
||||
"bsonType": "string",
|
||||
"description": "页面ID,对应uni-stat-pages._id",
|
||||
"foreignKey": "uni-stat-pages._id"
|
||||
},
|
||||
"event_key": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端上报的key"
|
||||
},
|
||||
"param": {
|
||||
"bsonType": "string",
|
||||
"description": "事件参数"
|
||||
},
|
||||
"sdk_version": {
|
||||
"bsonType": "string",
|
||||
"description": "基础库版本号"
|
||||
},
|
||||
"platform_version": {
|
||||
"bsonType": "string",
|
||||
"description": "平台版本,如微信、支付宝宿主App版本号"
|
||||
},
|
||||
"device_os": {
|
||||
"bsonType": "int",
|
||||
"description": "设备系统编号,1:安卓,2:iOS,3:PC"
|
||||
},
|
||||
"device_os_version": {
|
||||
"bsonType": "string",
|
||||
"description": "设备系统版本"
|
||||
},
|
||||
"device_net": {
|
||||
"bsonType": "string",
|
||||
"description": "设备网络型号wifi/3G/4G/"
|
||||
},
|
||||
"device_vendor": {
|
||||
"bsonType": "string",
|
||||
"description": "设备供应商 "
|
||||
},
|
||||
"device_model": {
|
||||
"bsonType": "string",
|
||||
"description": "设备型号"
|
||||
},
|
||||
"device_language": {
|
||||
"bsonType": "string",
|
||||
"description": "设备语言包"
|
||||
},
|
||||
"device_pixel_ratio": {
|
||||
"bsonType": "string",
|
||||
"description": "设备像素比 "
|
||||
},
|
||||
"device_window_width": {
|
||||
"bsonType": "string",
|
||||
"description": "设备窗口宽度 "
|
||||
},
|
||||
"device_window_height": {
|
||||
"bsonType": "string",
|
||||
"description": "设备窗口高度"
|
||||
},
|
||||
"device_screen_width": {
|
||||
"bsonType": "string",
|
||||
"description": "设备屏幕宽度"
|
||||
},
|
||||
"device_screen_height": {
|
||||
"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": "event_key",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_user",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "event_key",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "uid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,117 @@
|
||||
{"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,对应opendb-app-versions._id","foreignKey":"opendb-app-versions._id"},"event_key":{"bsonType":"string","description":"事件key,对应uni-stat-events.event_key","foreignKey":"uni-stat-events.event_key"},"event_count":{"bsonType":"int","description":"触发次数"},"device_count":{"bsonType":"int","description":"触发该事件的设备数"},"user_count":{"bsonType":"int","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,对应opendb-app-versions._id",
|
||||
"foreignKey": "opendb-app-versions._id"
|
||||
},
|
||||
"event_key": {
|
||||
"bsonType": "string",
|
||||
"description": "事件key,对应uni-stat-events.event_key",
|
||||
"foreignKey": "uni-stat-events.event_key"
|
||||
},
|
||||
"event_count": {
|
||||
"bsonType": "int",
|
||||
"description": "触发次数"
|
||||
},
|
||||
"device_count": {
|
||||
"bsonType": "int",
|
||||
"description": "触发该事件的设备数"
|
||||
},
|
||||
"user_count": {
|
||||
"bsonType": "int",
|
||||
"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
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,52 @@
|
||||
{"schema":{"bsonType":"object","description":"提供应用的事件字典","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"统计应用ID,对应opendb-app-list.appid","foreignKey":"opendb-app-list.appid"},"event_key":{"bsonType":"string","description":"事件键值"},"event_name":{"bsonType":"string","description":"事件名称"},"create_time":{"bsonType":"timestamp","description":"创建时间"},"update_time":{"bsonType":"timestamp","description":"last_modify_time"}}},"index":[{"IndexName":"index_search_event","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"event_key","Direction":"1"}],"MgoIsUnique":true}}]}
|
||||
{
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"description": "提供应用的事件字典",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"appid": {
|
||||
"bsonType": "string",
|
||||
"description": "统计应用ID,对应opendb-app-list.appid",
|
||||
"foreignKey": "opendb-app-list.appid"
|
||||
},
|
||||
"event_key": {
|
||||
"bsonType": "string",
|
||||
"description": "事件键值"
|
||||
},
|
||||
"event_name": {
|
||||
"bsonType": "string",
|
||||
"description": "事件名称"
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
},
|
||||
"update_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "last_modify_time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"index": [{
|
||||
"IndexName": "index_search_event",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "event_key",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": true
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,116 @@
|
||||
{"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,对应opendb-app-versions._id","foreignKey":"opendb-app-versions._id"},"visit_depth_data":{"bsonType":"object","description":"访问深度数据","properties":{"visit_users":{"bsonType":"object","description":"访问用户数"},"visit_devices":{"bsonType":"object","description":"访问设备数"},"visit_times":{"bsonType":"object","description":"访问次数"}}},"duration_data":{"bsonType":"object","description":"访问时长数据","properties":{"visit_users":{"bsonType":"object","description":"访问用户数"},"visit_devices":{"bsonType":"object","description":"访问设备数"},"visit_times":{"bsonType":"object","description":"访问次数"}}},"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":"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,对应opendb-app-versions._id",
|
||||
"foreignKey": "opendb-app-versions._id"
|
||||
},
|
||||
"visit_depth_data": {
|
||||
"bsonType": "object",
|
||||
"description": "访问深度数据",
|
||||
"properties": {
|
||||
"visit_users": {
|
||||
"bsonType": "object",
|
||||
"description": "访问用户数"
|
||||
},
|
||||
"visit_devices": {
|
||||
"bsonType": "object",
|
||||
"description": "访问设备数"
|
||||
},
|
||||
"visit_times": {
|
||||
"bsonType": "object",
|
||||
"description": "访问次数"
|
||||
}
|
||||
}
|
||||
},
|
||||
"duration_data": {
|
||||
"bsonType": "object",
|
||||
"description": "访问时长数据",
|
||||
"properties": {
|
||||
"visit_users": {
|
||||
"bsonType": "object",
|
||||
"description": "访问用户数"
|
||||
},
|
||||
"visit_devices": {
|
||||
"bsonType": "object",
|
||||
"description": "访问设备数"
|
||||
},
|
||||
"visit_times": {
|
||||
"bsonType": "object",
|
||||
"description": "访问次数"
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": "start_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,48 @@
|
||||
{"schema":{"bsonType":"object","description":"提供应用渠道和小程序场景值的数据字典","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"platform":{"bsonType":"string","description":"应用平台,对应uni-stat-app-platforms.code","foreignKey":"uni-stat-app-platforms.code"},"scene_code":{"bsonType":"string","description":"场景代码"},"scene_name":{"bsonType":"string","description":"场景名称"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search","MgoKeySchema":{"MgoIndexKeys":[{"Name":"platform","Direction":"1"},{"Name":"scene_code","Direction":"1"}],"MgoIsUnique":true}}]}
|
||||
{
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"description": "提供应用渠道和小程序场景值的数据字典",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"platform": {
|
||||
"bsonType": "string",
|
||||
"description": "应用平台,对应uni-stat-app-platforms.code",
|
||||
"foreignKey": "uni-stat-app-platforms.code"
|
||||
},
|
||||
"scene_code": {
|
||||
"bsonType": "string",
|
||||
"description": "场景代码"
|
||||
},
|
||||
"scene_name": {
|
||||
"bsonType": "string",
|
||||
"description": "场景名称"
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
}
|
||||
}
|
||||
},
|
||||
"index": [{
|
||||
"IndexName": "index_search",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "platform",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "scene_code",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": true
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,237 @@
|
||||
{"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":"用户端上报的应用版本号"},"platform":{"bsonType":"string","description":"用户端上报的平台code"},"channel":{"bsonType":"string","description":"用户端上报的渠道code/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"session_id":{"bsonType":"string","description":"访问会话日志ID,对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"page_id":{"bsonType":"string","description":"当前页面ID,对应uni-stat-pages._id","foreignKey":"uni-stat-pages._id"},"previous_page_id":{"bsonType":"string","description":"上级页面ID,为空表示第一个页面, 对应uni-stat-pages._id"},"previous_page_duration":{"bsonType":"int","description":"上级页面停留时间,单位秒,前端上报"},"previous_page_is_entry":{"bsonType":"int","defaultValue":0,"description":" 上级页面是否为入口页, 0否 1是","enum":[{"text":"否","value":0},{"text":"是","value":1}]},"query_string":{"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_base","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_auto","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}},{"IndexName":"index_search_more","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"page_id","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_entry","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"previous_page_id","Direction":"1"},{"Name":"previous_page_is_entry","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_entry_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"previous_page_id","Direction":"1"},{"Name":"previous_page_is_entry","Direction":"1"},{"Name":"uid","Direction":"1"},{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_more_user","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"page_id","Direction":"1"},{"Name":"uid","Direction":"1"},{"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": "用户端上报的应用版本号"
|
||||
},
|
||||
"platform": {
|
||||
"bsonType": "string",
|
||||
"description": "用户端上报的平台code"
|
||||
},
|
||||
"channel": {
|
||||
"bsonType": "string",
|
||||
"description": "用户端上报的渠道code/场景值"
|
||||
},
|
||||
"device_id": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端携带的设备标识"
|
||||
},
|
||||
"uid": {
|
||||
"bsonType": "string",
|
||||
"description": "用户编号, 对应uni-id-users._id"
|
||||
},
|
||||
"session_id": {
|
||||
"bsonType": "string",
|
||||
"description": "访问会话日志ID,对应uni-stat-session-logs._id",
|
||||
"foreignKey": "uni-stat-session-logs._id"
|
||||
},
|
||||
"page_id": {
|
||||
"bsonType": "string",
|
||||
"description": "当前页面ID,对应uni-stat-pages._id",
|
||||
"foreignKey": "uni-stat-pages._id"
|
||||
},
|
||||
"previous_page_id": {
|
||||
"bsonType": "string",
|
||||
"description": "上级页面ID,为空表示第一个页面, 对应uni-stat-pages._id"
|
||||
},
|
||||
"previous_page_duration": {
|
||||
"bsonType": "int",
|
||||
"description": "上级页面停留时间,单位秒,前端上报"
|
||||
},
|
||||
"previous_page_is_entry": {
|
||||
"bsonType": "int",
|
||||
"defaultValue": 0,
|
||||
"description": " 上级页面是否为入口页, 0否 1是",
|
||||
"enum": [{
|
||||
"text": "否",
|
||||
"value": 0
|
||||
}, {
|
||||
"text": "是",
|
||||
"value": 1
|
||||
}]
|
||||
},
|
||||
"query_string": {
|
||||
"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_base",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_auto",
|
||||
"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
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_more",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "page_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_entry",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "previous_page_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "previous_page_is_entry",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_entry_user",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "previous_page_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "previous_page_is_entry",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "uid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_more_user",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "page_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "uid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,149 @@
|
||||
{"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,对应opendb-app-versions._id","foreignKey":"opendb-app-versions._id"},"page_id":{"bsonType":"string","description":"页面表ID,对应页面表ID,对应uni-stat-pages._id","foreignKey":"uni-stat-pages._id"},"visit_times":{"bsonType":"int","description":"访问次数"},"visit_devices":{"bsonType":"int","description":"访问设备数"},"exit_times":{"bsonType":"int","description":"退出次数"},"duration":{"bsonType":"int","description":"访问总时长,单位秒"},"share_count":{"bsonType":"int","description":"分享次数"},"entry_devices":{"bsonType":"int","description":"当前页作为入口页的设备数"},"entry_users":{"bsonType":"int","description":"当前页作为入口页的用户数"},"entry_count":{"bsonType":"int","description":"当前页作为入口页的总次数"},"entry_duration":{"bsonType":"int","description":"当前页作为入口时,本页面的总访问时长,单位秒"},"bounce_times":{"bsonType":"int","description":"跳出次数"},"bounce_rate":{"bsonType":"double","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,对应opendb-app-versions._id",
|
||||
"foreignKey": "opendb-app-versions._id"
|
||||
},
|
||||
"page_id": {
|
||||
"bsonType": "string",
|
||||
"description": "页面表ID,对应页面表ID,对应uni-stat-pages._id",
|
||||
"foreignKey": "uni-stat-pages._id"
|
||||
},
|
||||
"visit_times": {
|
||||
"bsonType": "int",
|
||||
"description": "访问次数"
|
||||
},
|
||||
"visit_devices": {
|
||||
"bsonType": "int",
|
||||
"description": "访问设备数"
|
||||
},
|
||||
"exit_times": {
|
||||
"bsonType": "int",
|
||||
"description": "退出次数"
|
||||
},
|
||||
"duration": {
|
||||
"bsonType": "int",
|
||||
"description": "访问总时长,单位秒"
|
||||
},
|
||||
"share_count": {
|
||||
"bsonType": "int",
|
||||
"description": "分享次数"
|
||||
},
|
||||
"entry_devices": {
|
||||
"bsonType": "int",
|
||||
"description": "当前页作为入口页的设备数"
|
||||
},
|
||||
"entry_users": {
|
||||
"bsonType": "int",
|
||||
"description": "当前页作为入口页的用户数"
|
||||
},
|
||||
"entry_count": {
|
||||
"bsonType": "int",
|
||||
"description": "当前页作为入口页的总次数"
|
||||
},
|
||||
"entry_duration": {
|
||||
"bsonType": "int",
|
||||
"description": "当前页作为入口时,本页面的总访问时长,单位秒"
|
||||
},
|
||||
"bounce_times": {
|
||||
"bsonType": "int",
|
||||
"description": "跳出次数"
|
||||
},
|
||||
"bounce_rate": {
|
||||
"bsonType": "double",
|
||||
"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
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,48 @@
|
||||
{"schema":{"bsonType":"object","description":"提供应用的页面字典","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"统计应用ID,对应opendb-app-list.appid","foreignKey":"opendb-app-list.appid"},"path":{"bsonType":"string","description":"页面路径,如`/pages/index/index`"},"title":{"bsonType":"string","description":"页面标题"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_page","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"path","Direction":"1"}],"MgoIsUnique":true}}]}
|
||||
{
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"description": "提供应用的页面字典",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"appid": {
|
||||
"bsonType": "string",
|
||||
"description": "统计应用ID,对应opendb-app-list.appid",
|
||||
"foreignKey": "opendb-app-list.appid"
|
||||
},
|
||||
"path": {
|
||||
"bsonType": "string",
|
||||
"description": "页面路径,如`/pages/index/index`"
|
||||
},
|
||||
"title": {
|
||||
"bsonType": "string",
|
||||
"description": "页面标题"
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
}
|
||||
}
|
||||
},
|
||||
"index": [{
|
||||
"IndexName": "index_search_page",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "path",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": true
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,191 @@
|
||||
{"schema":{"bsonType":"object","description":"存储统计汇总的会话数据包括不限于设备/用户的数量、访问量、活跃度(日活、周活、月活)、留存率(日留存、周留存、月留存)、跳出率、访问时长等数据","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"appid":{"bsonType":"string","description":"应用ID,对应opendb-app-list.appid","foreignKey":"opendb-app-list.appid"},"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,对应opendb-app-versions._id","foreignKey":"opendb-app-versions._id"},"total_users":{"bsonType":"int","description":"历史累计总用户数"},"new_user_count":{"bsonType":"int","description":"本时间段新增用户数"},"active_user_count":{"bsonType":"int","description":"本时间段活跃用户数"},"total_devices":{"bsonType":"int","description":"历史累计总设备数"},"new_device_count":{"bsonType":"int","description":"本时间段新增设备数"},"user_session_times":{"bsonType":"int","description":"本时间段用户的会话次数"},"active_device_count":{"bsonType":"int","description":"本时间段活跃设备数"},"app_launch_count":{"bsonType":"int","description":"本时间段App启动或从后台切到前台的次数"},"error_count":{"bsonType":"int","description":"本时间段报错次数"},"duration":{"bsonType":"int","description":"时间段内,所有会话访问总时长,单位秒"},"user_duration":{"bsonType":"int","description":"本次登录用户的会话总时长,单位为秒"},"avg_device_session_time":{"bsonType":"int","description":"设备的次均停留时长,单位秒"},"avg_device_time":{"bsonType":"int","defaultValue":"设均停留时长(平均每台设备的停留时长),单位秒"},"avg_user_session_time":{"bsonType":"int","description":"用户的次均停留时长,单位秒"},"avg_user_time":{"bsonType":"int","defaultValue":"人均停留时长(平均每个登录用户的停留时长),单位秒"},"bounce_times":{"bsonType":"int","description":"跳出次数"},"bounce_rate":{"bsonType":"double","description":"跳出率"},"retention":{"bsonType":"object","description":"留存信息","properties":{"active_user":{"bsonType":"object","description":"活跃用户留存信息"},"new_user":{"bsonType":"object","description":"新增用户留存信息"},"active_device":{"bsonType":"object","description":"活跃设备留存信息"},"new_device":{"bsonType":"object","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,对应opendb-app-list.appid",
|
||||
"foreignKey": "opendb-app-list.appid"
|
||||
},
|
||||
"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,对应opendb-app-versions._id",
|
||||
"foreignKey": "opendb-app-versions._id"
|
||||
},
|
||||
"total_users": {
|
||||
"bsonType": "int",
|
||||
"description": "历史累计总用户数"
|
||||
},
|
||||
"new_user_count": {
|
||||
"bsonType": "int",
|
||||
"description": "本时间段新增用户数"
|
||||
},
|
||||
"active_user_count": {
|
||||
"bsonType": "int",
|
||||
"description": "本时间段活跃用户数"
|
||||
},
|
||||
"total_devices": {
|
||||
"bsonType": "int",
|
||||
"description": "历史累计总设备数"
|
||||
},
|
||||
"new_device_count": {
|
||||
"bsonType": "int",
|
||||
"description": "本时间段新增设备数"
|
||||
},
|
||||
"user_session_times": {
|
||||
"bsonType": "int",
|
||||
"description": "本时间段用户的会话次数"
|
||||
},
|
||||
"active_device_count": {
|
||||
"bsonType": "int",
|
||||
"description": "本时间段活跃设备数"
|
||||
},
|
||||
"app_launch_count": {
|
||||
"bsonType": "int",
|
||||
"description": "本时间段App启动或从后台切到前台的次数"
|
||||
},
|
||||
"error_count": {
|
||||
"bsonType": "int",
|
||||
"description": "本时间段报错次数"
|
||||
},
|
||||
"duration": {
|
||||
"bsonType": "int",
|
||||
"description": "时间段内,所有会话访问总时长,单位秒"
|
||||
},
|
||||
"user_duration": {
|
||||
"bsonType": "int",
|
||||
"description": "本次登录用户的会话总时长,单位为秒"
|
||||
},
|
||||
"avg_device_session_time": {
|
||||
"bsonType": "int",
|
||||
"description": "设备的次均停留时长,单位秒"
|
||||
},
|
||||
"avg_device_time": {
|
||||
"bsonType": "int",
|
||||
"defaultValue": "设均停留时长(平均每台设备的停留时长),单位秒"
|
||||
},
|
||||
"avg_user_session_time": {
|
||||
"bsonType": "int",
|
||||
"description": "用户的次均停留时长,单位秒"
|
||||
},
|
||||
"avg_user_time": {
|
||||
"bsonType": "int",
|
||||
"defaultValue": "人均停留时长(平均每个登录用户的停留时长),单位秒"
|
||||
},
|
||||
"bounce_times": {
|
||||
"bsonType": "int",
|
||||
"description": "跳出次数"
|
||||
},
|
||||
"bounce_rate": {
|
||||
"bsonType": "double",
|
||||
"description": "跳出率"
|
||||
},
|
||||
"retention": {
|
||||
"bsonType": "object",
|
||||
"description": "留存信息",
|
||||
"properties": {
|
||||
"active_user": {
|
||||
"bsonType": "object",
|
||||
"description": "活跃用户留存信息"
|
||||
},
|
||||
"new_user": {
|
||||
"bsonType": "object",
|
||||
"description": "新增用户留存信息"
|
||||
},
|
||||
"active_device": {
|
||||
"bsonType": "object",
|
||||
"description": "活跃设备留存信息"
|
||||
},
|
||||
"new_device": {
|
||||
"bsonType": "object",
|
||||
"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
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,34 @@
|
||||
{"schema":{"bsonType":"object","description":"记录数据统计时运行出错的日志","required":[],"permission":{"read":false,"create":false,"update":false,"delete":false},"properties":{"_id":{"description":"ID,系统自动生成"},"mod":{"bsonType":"string","description":"运行模块"},"params":{"bsonType":"object","description":"运行参数"},"error":{"bsonType":"string","description":"错误信息"},"create_time":{"bsonType":"timestamp","description":"创建时间"}}}}
|
||||
{
|
||||
"schema": {
|
||||
"bsonType": "object",
|
||||
"description": "记录数据统计时运行出错的日志",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"mod": {
|
||||
"bsonType": "string",
|
||||
"description": "运行模块"
|
||||
},
|
||||
"params": {
|
||||
"bsonType": "object",
|
||||
"description": "运行参数"
|
||||
},
|
||||
"error": {
|
||||
"bsonType": "string",
|
||||
"description": "错误信息"
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1,90 @@
|
||||
{"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":"客户端上报的应用版本号"},"platform":{"bsonType":"string","description":"客户端上报的平台code"},"channel":{"bsonType":"string","description":"客户端上报的渠道code/场景值"},"device_id":{"bsonType":"string","description":"客户端携带的设备标识"},"uid":{"bsonType":"string","description":"用户编号, 对应uni-id-users._id"},"session_id":{"bsonType":"string","description":"访问会话日志ID,对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"page_id":{"bsonType":"string","description":"当前页面ID,对应uni-stat-pagesd","foreignKey":"uni-stat-pagesd"},"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":"page_id","Direction":"1"},{"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": "客户端上报的应用版本号"
|
||||
},
|
||||
"platform": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端上报的平台code"
|
||||
},
|
||||
"channel": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端上报的渠道code/场景值"
|
||||
},
|
||||
"device_id": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端携带的设备标识"
|
||||
},
|
||||
"uid": {
|
||||
"bsonType": "string",
|
||||
"description": "用户编号, 对应uni-id-users._id"
|
||||
},
|
||||
"session_id": {
|
||||
"bsonType": "string",
|
||||
"description": "访问会话日志ID,对应uni-stat-session-logs._id",
|
||||
"foreignKey": "uni-stat-session-logs._id"
|
||||
},
|
||||
"page_id": {
|
||||
"bsonType": "string",
|
||||
"description": "当前页面ID,对应uni-stat-pagesd",
|
||||
"foreignKey": "uni-stat-pagesd"
|
||||
},
|
||||
"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": "page_id",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
@ -1 +1,156 @@
|
||||
{"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":"客户端上报的应用版本号"},"platform":{"bsonType":"string","description":"客户端上报的平台code"},"channel":{"bsonType":"string","description":"客户端上报的渠道code/场景值"},"session_id":{"bsonType":"string","description":"访问会话日志ID,对应uni-stat-session-logs._id","foreignKey":"uni-stat-session-logs._id"},"uid":{"bsonType":"string","description":"本次会话最终访问用户的ID, uni-id-users._id"},"last_visit_time":{"bsonType":"timestamp","description":"用户最后一次访问时间"},"entry_page_id":{"bsonType":"string","description":"本次会话入口页面ID, 同uni-stat-pagesd"},"exit_page_id":{"bsonType":"string","description":"本次会话退出页面ID, 同uni-stat-pagesd"},"page_count":{"bsonType":"int","description":"本次会话浏览的页面数"},"event_count":{"bsonType":"int","description":"本次会话产生的事件数"},"duration":{"bsonType":"int","description":"本次会话时长,单位为秒,服务端计算"},"is_finish":{"bsonType":"int","defaultValue":0,"description":"本次会话是否结束,0:否,1是","enum":[{"text":"否","value":0},{"text":"是","value":1}]},"create_time":{"bsonType":"timestamp","description":"创建时间"}}},"index":[{"IndexName":"index_search_time","MgoKeySchema":{"MgoIndexKeys":[{"Name":"create_time","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_base","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"}],"MgoIsUnique":false}},{"IndexName":"index_search_auto","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}},{"IndexName":"index_search_more","MgoKeySchema":{"MgoIndexKeys":[{"Name":"appid","Direction":"1"},{"Name":"version","Direction":"1"},{"Name":"platform","Direction":"1"},{"Name":"channel","Direction":"1"},{"Name":"uid","Direction":"1"},{"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": "客户端上报的应用版本号"
|
||||
},
|
||||
"platform": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端上报的平台code"
|
||||
},
|
||||
"channel": {
|
||||
"bsonType": "string",
|
||||
"description": "客户端上报的渠道code/场景值"
|
||||
},
|
||||
"session_id": {
|
||||
"bsonType": "string",
|
||||
"description": "访问会话日志ID,对应uni-stat-session-logs._id",
|
||||
"foreignKey": "uni-stat-session-logs._id"
|
||||
},
|
||||
"uid": {
|
||||
"bsonType": "string",
|
||||
"description": "本次会话最终访问用户的ID, uni-id-users._id"
|
||||
},
|
||||
"last_visit_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "用户最后一次访问时间"
|
||||
},
|
||||
"entry_page_id": {
|
||||
"bsonType": "string",
|
||||
"description": "本次会话入口页面ID, 同uni-stat-pagesd"
|
||||
},
|
||||
"exit_page_id": {
|
||||
"bsonType": "string",
|
||||
"description": "本次会话退出页面ID, 同uni-stat-pagesd"
|
||||
},
|
||||
"page_count": {
|
||||
"bsonType": "int",
|
||||
"description": "本次会话浏览的页面数"
|
||||
},
|
||||
"event_count": {
|
||||
"bsonType": "int",
|
||||
"description": "本次会话产生的事件数"
|
||||
},
|
||||
"duration": {
|
||||
"bsonType": "int",
|
||||
"description": "本次会话时长,单位为秒,服务端计算"
|
||||
},
|
||||
"is_finish": {
|
||||
"bsonType": "int",
|
||||
"defaultValue": 0,
|
||||
"description": "本次会话是否结束,0:否,1是",
|
||||
"enum": [{
|
||||
"text": "否",
|
||||
"value": 0
|
||||
}, {
|
||||
"text": "是",
|
||||
"value": 1
|
||||
}]
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间"
|
||||
}
|
||||
}
|
||||
},
|
||||
"index": [{
|
||||
"IndexName": "index_search_time",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_base",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_auto",
|
||||
"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
|
||||
}
|
||||
}, {
|
||||
"IndexName": "index_search_more",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
"Name": "appid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "version",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "platform",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "channel",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "uid",
|
||||
"Direction": "1"
|
||||
}, {
|
||||
"Name": "create_time",
|
||||
"Direction": "1"
|
||||
}],
|
||||
"MgoIsUnique": false
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user