forked from mozilla-services/mozilla-pipeline-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpioneer-study.4.schema.json
142 lines (142 loc) · 3.5 KB
/
pioneer-study.4.schema.json
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"$schema": "http://json-schema.org/draft-04/schema#",
"mozPipelineMetadata": {
"bq_dataset_family": "telemetry",
"bq_metadata_format": "telemetry",
"bq_table": "pioneer_study_v4"
},
"properties": {
"application": {
"additionalProperties": false,
"properties": {
"architecture": {
"type": "string"
},
"buildId": {
"pattern": "^[0-9]{10}",
"type": "string"
},
"channel": {
"type": "string"
},
"displayVersion": {
"pattern": "^[0-9]{2,3}\\.",
"type": "string"
},
"name": {
"type": "string"
},
"platformVersion": {
"pattern": "^[0-9]{2,3}\\.",
"type": "string"
},
"vendor": {
"type": "string"
},
"version": {
"pattern": "^[0-9]{2,3}\\.",
"type": "string"
},
"xpcomAbi": {
"type": "string"
}
},
"required": [
"architecture",
"buildId",
"channel",
"name",
"platformVersion",
"version",
"vendor",
"xpcomAbi"
],
"type": "object"
},
"creationDate": {
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$",
"type": "string"
},
"id": {
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
"type": "string"
},
"payload": {
"description": "",
"properties": {
"encryptedData": {
"description": "JOSE/JWE encrypted payload.",
"type": "string"
},
"encryptionKeyId": {
"description": "JOSE/JWK key id, e.g. pioneer-20170520.",
"type": "string"
},
"pioneerId": {
"description": "Custom pioneer id, must not be Telemetry clientId",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
"type": "string"
},
"schemaName": {
"description": "Name of a schema used for validation of the encryptedData",
"maxLength": 100,
"minLength": 1,
"pattern": "^\\S+$",
"type": "string"
},
"schemaNamespace": {
"description": "The namespace of the schema used for validation and routing to a dataset.",
"maxLength": 100,
"minLength": 1,
"pattern": "^\\S+$",
"type": "string"
},
"schemaVersion": {
"description": "Integer version number of the schema",
"minimum": 1,
"type": "integer"
},
"studyName": {
"description": "Name of a particular study. Usually the addon_id.",
"maxLength": 100,
"minLength": 1,
"pattern": "^\\S+$",
"type": "string"
}
},
"required": [
"encryptedData",
"encryptionKeyId",
"pioneerId",
"schemaNamespace",
"studyName",
"schemaName",
"schemaVersion"
],
"title": "pioneer-study",
"type": "object"
},
"type": {
"description": "doc_type, restated",
"enum": [
"pioneer-study"
],
"type": "string"
},
"version": {
"maximum": 4,
"minimum": 4,
"type": "integer"
}
},
"required": [
"application",
"creationDate",
"id",
"payload",
"type",
"version"
],
"title": "pioneer-study",
"type": "object"
}