返回 CodeWhale
website-funnel-v5.schema.json
根目录 / telemetry-ingest / schema / website-funnel-v5.schema.json
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$id": "https://codewhale.net/schemas/website-funnel-telemetry-v5.json",
4 "title": "Codewhale website aggregate telemetry v5, notice v7",
5 "description": "Generated from telemetry-ingest/src/schema.ts; do not edit the JSON artifact. No content or identity fields.",
6 "type": "object",
7 "additionalProperties": false,
8 "required": [
9 "schema_version",
10 "notice_version",
11 "sent_at",
12 "install_id",
13 "app_version",
14 "git_sha",
15 "surface",
16 "os",
17 "arch",
18 "libc",
19 "tty",
20 "events"
21 ],
22 "properties": {
23 "schema_version": {
24 "const": 5
25 },
26 "notice_version": {
27 "const": 7
28 },
29 "sent_at": {
30 "type": "string",
31 "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
32 },
33 "install_id": {
34 "type": "string",
35 "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
36 },
37 "app_version": {
38 "type": "string",
39 "maxLength": 64,
40 "pattern": "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.]+)?$"
41 },
42 "git_sha": {
43 "const": null
44 },
45 "surface": {
46 "const": "website"
47 },
48 "os": {
49 "const": "other"
50 },
51 "arch": {
52 "const": "other"
53 },
54 "libc": {
55 "const": "none"
56 },
57 "tty": {
58 "const": false
59 },
60 "events": {
61 "type": "array",
62 "minItems": 1,
63 "maxItems": 200,
64 "items": {
65 "oneOf": [
66 {
67 "type": "object",
68 "additionalProperties": false,
69 "required": [
70 "event",
71 "counters"
72 ],
73 "properties": {
74 "event": {
75 "const": "product_usage"
76 },
77 "counters": {
78 "type": "object",
79 "additionalProperties": false,
80 "required": [
81 "page_view",
82 "docs_view",
83 "install_copy",
84 "download",
85 "signup",
86 "login",
87 "session_create",
88 "session_resume",
89 "turn_submit",
90 "turn_complete",
91 "settings_open",
92 "integration_connect",
93 "error_shown"
94 ],
95 "properties": {
96 "page_view": {
97 "type": "integer",
98 "minimum": 0,
99 "maximum": 4294967295
100 },
101 "docs_view": {
102 "type": "integer",
103 "minimum": 0,
104 "maximum": 4294967295
105 },
106 "install_copy": {
107 "type": "integer",
108 "minimum": 0,
109 "maximum": 4294967295
110 },
111 "download": {
112 "type": "integer",
113 "minimum": 0,
114 "maximum": 4294967295
115 },
116 "signup": {
117 "type": "integer",
118 "minimum": 0,
119 "maximum": 4294967295
120 },
121 "login": {
122 "type": "integer",
123 "minimum": 0,
124 "maximum": 4294967295
125 },
126 "session_create": {
127 "type": "integer",
128 "minimum": 0,
129 "maximum": 4294967295
130 },
131 "session_resume": {
132 "type": "integer",
133 "minimum": 0,
134 "maximum": 4294967295
135 },
136 "turn_submit": {
137 "type": "integer",
138 "minimum": 0,
139 "maximum": 4294967295
140 },
141 "turn_complete": {
142 "type": "integer",
143 "minimum": 0,
144 "maximum": 4294967295
145 },
146 "settings_open": {
147 "type": "integer",
148 "minimum": 0,
149 "maximum": 4294967295
150 },
151 "integration_connect": {
152 "type": "integer",
153 "minimum": 0,
154 "maximum": 4294967295
155 },
156 "error_shown": {
157 "type": "integer",
158 "minimum": 0,
159 "maximum": 4294967295
160 }
161 }
162 }
163 }
164 },
165 {
166 "type": "object",
167 "additionalProperties": false,
168 "required": [
169 "event",
170 "counters"
171 ],
172 "properties": {
173 "event": {
174 "const": "funnel_usage"
175 },
176 "counters": {
177 "type": "object",
178 "additionalProperties": false,
179 "required": [
180 "home_view",
181 "install_view",
182 "quickstart_view",
183 "contribute_view",
184 "install_intent",
185 "install_confirmed",
186 "star_exit",
187 "issue_exit",
188 "help_wanted_exit",
189 "guide_exit",
190 "docs_search",
191 "docs_search_empty",
192 "docs_search_result",
193 "quickstart_confirmed"
194 ],
195 "properties": {
196 "home_view": {
197 "type": "integer",
198 "minimum": 0,
199 "maximum": 4294967295
200 },
201 "install_view": {
202 "type": "integer",
203 "minimum": 0,
204 "maximum": 4294967295
205 },
206 "quickstart_view": {
207 "type": "integer",
208 "minimum": 0,
209 "maximum": 4294967295
210 },
211 "contribute_view": {
212 "type": "integer",
213 "minimum": 0,
214 "maximum": 4294967295
215 },
216 "install_intent": {
217 "type": "integer",
218 "minimum": 0,
219 "maximum": 4294967295
220 },
221 "install_confirmed": {
222 "type": "integer",
223 "minimum": 0,
224 "maximum": 4294967295
225 },
226 "star_exit": {
227 "type": "integer",
228 "minimum": 0,
229 "maximum": 4294967295
230 },
231 "issue_exit": {
232 "type": "integer",
233 "minimum": 0,
234 "maximum": 4294967295
235 },
236 "help_wanted_exit": {
237 "type": "integer",
238 "minimum": 0,
239 "maximum": 4294967295
240 },
241 "guide_exit": {
242 "type": "integer",
243 "minimum": 0,
244 "maximum": 4294967295
245 },
246 "docs_search": {
247 "type": "integer",
248 "minimum": 0,
249 "maximum": 4294967295
250 },
251 "docs_search_empty": {
252 "type": "integer",
253 "minimum": 0,
254 "maximum": 4294967295
255 },
256 "docs_search_result": {
257 "type": "integer",
258 "minimum": 0,
259 "maximum": 4294967295
260 },
261 "quickstart_confirmed": {
262 "type": "integer",
263 "minimum": 0,
264 "maximum": 4294967295
265 }
266 }
267 }
268 }
269 }
270 ]
271 }
272 }
273 }
274 }
275
275 lines JSON