uni-stat-event-result.schema.json 1.9 KB
Newer Older
study夏羽's avatar
study夏羽 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
// 事件统计结果表
{
	"bsonType": "object",
	"description": "存储汇总的事件日志的数据",
	"required": [],
	"permission": {
		"read": "'READ_UNI_STAT_EVENT_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"
		},
		"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": "结束时间"
		}
	}
}