NGToolsAdmin/uniCloud-aliyun/database/uni-stat-page-detail-result.schema.json

96 lines
2.2 KiB
JSON
Raw Permalink Normal View History

2024-09-13 08:39:31 +00:00
// 页面内容统计结果表
{
"bsonType": "object",
"description": "存储汇总的页面内容访问数据",
"required": [],
"permission": {
"read": "'READ_UNI_STAT_PAGE_RESULT' in auth.permission",
"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对应uni-stat-pages._id",
"foreignKey": "uni-stat-pages._id"
},
"page_detail_id": {
"bsonType": "string",
"description": "页面详情表ID对应uni-stat-page-details._id",
"foreignKey": "uni-stat-page-details._id"
},
"visit_times": {
"bsonType": "int",
"description": "访问次数"
},
"visit_devices": {
"bsonType": "int",
"description": "访问设备数"
},
"visit_users": {
"bsonType": "int",
"description": "访问用户数"
},
"duration": {
"bsonType": "int",
"description": "访问总时长,单位秒"
},
"share_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": "结束时间"
}
}
}