File: metrics.yaml

package info (click to toggle)
firefox 142.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,591,884 kB
  • sloc: cpp: 7,451,570; javascript: 6,392,463; ansic: 3,712,584; python: 1,388,569; xml: 629,223; asm: 426,919; java: 184,857; sh: 63,439; makefile: 19,150; objc: 13,059; perl: 12,983; yacc: 4,583; cs: 3,846; pascal: 3,352; lex: 1,720; ruby: 1,003; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 53; csh: 10
file content (1417 lines) | stat: -rw-r--r-- 46,080 bytes parent folder | download
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# This file is for Internal Telemetry Use Only.
# Please don't add anything here unless you have the permission of a
# Telemetry Module Peer.

---
$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
$tags:
  - "Toolkit :: Telemetry"

legacy.telemetry:
  client_id:
    type: uuid
    lifetime: application
    description: |
      The client_id according to Telemetry.
      Might not always have a value due to being too early for it to have
      loaded.
      Value may be the canary client id `c0ffeec0-ffee-c0ff-eec0-ffeec0ffeec0`
      in pings near when the data upload pref is disabled (if Telemetry gets
      to go first), or between when a client_id has been removed and when it
      has been regenerated.
      Does not need to be sent in the Glean "deletion-request" ping.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1938183
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1938183
    data_sensitivity:
      - technical
      - highly_sensitive
    notification_emails:
      - chutten@mozilla.com
      - glean-team@mozilla.com
    expires: never
    no_lint:
      - BASELINE_PING
    send_in_pings: &client_id_pings
      - 'metrics'
      - 'events'
      - 'newtab'
      - 'baseline'
      - 'nimbus-targeting-context'
      - 'third-party-modules'

  profile_group_id:
    type: uuid
    lifetime: application
    description: |
      The profile_group_id according to Telemetry.
      Might not always have a value due to being too early for it to have
      loaded.
      Does not need to be sent in the Glean "deletion-request" ping.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1901263
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1938183
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1901263
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1938183
    data_sensitivity:
      - technical
      - highly_sensitive
    notification_emails:
      - dtownsend@mozilla.com
      - glean-team@mozilla.com
    expires: never
    no_lint:
      - BASELINE_PING
    send_in_pings: *client_id_pings

telemetry:
  data_upload_optin:
    type: boolean
    description: >
      User opted into sending Telemetry data again.
      This metric was generated to correspond to the Legacy Telemetry
      scalar telemetry.data_upload_optin.
    bugs:
      - https://bugzil.la/1445921
    data_reviews:
      - https://bugzil.la/1445921
    notification_emails:
      - jrediger@mozilla.com
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_DATA_UPLOAD_OPTIN

  archive_directories_count:
    type: custom_distribution
    description: >
      Number of directories in the archive at scan

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram TELEMETRY_ARCHIVE_DIRECTORIES_COUNT.
    range_min: 1
    range_max: 13
    bucket_count: 12
    histogram_type: linear
    unit: directories
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_ARCHIVE_DIRECTORIES_COUNT

  archive_oldest_directory_age:
    type: custom_distribution
    description: >
      The age of the oldest Telemetry archive directory in months

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram TELEMETRY_ARCHIVE_OLDEST_DIRECTORY_AGE.
    range_min: 1
    range_max: 13
    bucket_count: 12
    histogram_type: linear
    unit: months
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_ARCHIVE_OLDEST_DIRECTORY_AGE

  archive_scan_ping_count:
    type: custom_distribution
    description: >
      Number of Telemetry pings in the archive at scan

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_ARCHIVE_SCAN_PING_COUNT.
    range_min: 1
    range_max: 100000
    bucket_count: 100
    histogram_type: exponential
    unit: telemetry pings
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_ARCHIVE_SCAN_PING_COUNT

  archive_session_ping_count:
    type: counter
    description: >
      Number of Telemetry pings added to the archive during the session

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_ARCHIVE_SESSION_PING_COUNT.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_ARCHIVE_SESSION_PING_COUNT

  archive_size:
    type: memory_distribution
    description: >
      The size of the Telemetry archive (MB)

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram TELEMETRY_ARCHIVE_SIZE_MB.
    memory_unit: megabyte
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_ARCHIVE_SIZE_MB

  archive_evicted_over_quota:
    type: custom_distribution
    description: >
      Number of Telemetry pings evicted from the archive during cleanup, because
      they were over the quota

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_ARCHIVE_EVICTED_OVER_QUOTA.
    range_min: 1
    range_max: 100000
    bucket_count: 100
    histogram_type: exponential
    unit: pings
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_ARCHIVE_EVICTED_OVER_QUOTA

  archive_evicted_old_dirs:
    type: custom_distribution
    description: >
      Number of Telemetry directories evicted from the archive during cleanup,
      because they were too old

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram TELEMETRY_ARCHIVE_EVICTED_OLD_DIRS.
    range_min: 1
    range_max: 13
    bucket_count: 12
    histogram_type: linear
    unit: directories
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_ARCHIVE_EVICTED_OLD_DIRS

  archive_evicting_dirs:
    type: timing_distribution
    description: >
      Time (ms) it takes for evicting old directories

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_ARCHIVE_EVICTING_DIRS_MS.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_ARCHIVE_EVICTING_DIRS_MS

  archive_checking_over_quota:
    type: timing_distribution
    description: >
      Time (ms) it takes for checking if the archive is over-quota

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_ARCHIVE_CHECKING_OVER_QUOTA_MS.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_ARCHIVE_CHECKING_OVER_QUOTA_MS

  archive_evicting_over_quota:
    type: timing_distribution
    description: >
      Time (ms) it takes for evicting over-quota pings

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_ARCHIVE_EVICTING_OVER_QUOTA_MS.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1162538
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_ARCHIVE_EVICTING_OVER_QUOTA_MS

  pending_load_failure_read:
    type: counter
    description: >
      Number of pending Telemetry pings that failed to load from the disk

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_PENDING_LOAD_FAILURE_READ.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_PENDING_LOAD_FAILURE_READ

  pending_load_failure_parse:
    type: counter
    description: >
      Number of pending Telemetry pings that failed to parse once loaded from
      the disk

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_PENDING_LOAD_FAILURE_PARSE.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_PENDING_LOAD_FAILURE_PARSE

  pending_pings_size:
    type: memory_distribution
    description: >
      The size of the Telemetry pending pings directory (MB). The special value
      17 is used to indicate over quota pings.

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram TELEMETRY_PENDING_PINGS_SIZE_MB.
    memory_unit: megabyte
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_PENDING_PINGS_SIZE_MB

  pending_pings_age:
    type: timing_distribution
    description: >
      The age, in days, of the pending pings.

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_PENDING_PINGS_AGE.
    time_unit: day
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_PENDING_PINGS_AGE

  pending_pings_evicted_over_quota:
    type: custom_distribution
    description: >
      Number of Telemetry pings evicted from the pending pings directory during
      cleanup, because they were over the quota

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_PENDING_PINGS_EVICTED_OVER_QUOTA.
    range_min: 1
    range_max: 100000
    bucket_count: 100
    histogram_type: exponential
    unit: pings
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_PENDING_PINGS_EVICTED_OVER_QUOTA

  pending_evicting_over_quota:
    type: timing_distribution
    description: >
      Time (ms) it takes for evicting over-quota pending pings

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_PENDING_EVICTING_OVER_QUOTA_MS.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_PENDING_EVICTING_OVER_QUOTA_MS

  pending_checking_over_quota:
    type: timing_distribution
    description: >
      Time (ms) it takes for checking if the pending pings are over-quota

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_PENDING_CHECKING_OVER_QUOTA_MS.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_PENDING_CHECKING_OVER_QUOTA_MS

  ping_size_exceeded_send:
    type: counter
    description: >
      Number of Telemetry pings discarded before sending because they exceeded
      the maximum size

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_PING_SIZE_EXCEEDED_SEND.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_PING_SIZE_EXCEEDED_SEND

  ping_size_exceeded_pending:
    type: counter
    description: >
      Number of Telemetry pending pings discarded because they exceeded the
      maximum size

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_PING_SIZE_EXCEEDED_PENDING.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_PING_SIZE_EXCEEDED_PENDING

  ping_size_exceeded_archived:
    type: counter
    description: >
      Number of archived Telemetry pings discarded because they exceeded the
      maximum size

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_PING_SIZE_EXCEEDED_ARCHIVED.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_PING_SIZE_EXCEEDED_ARCHIVED

  ping_submission_waiting_clientid:
    type: counter
    description: >
      The number of pings that were submitted and had to wait for a client id
      (i.e. before it was cached or loaded from disk)

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_PING_SUBMISSION_WAITING_CLIENTID.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1233986
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1233986
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_PING_SUBMISSION_WAITING_CLIENTID

  discarded_pending_pings_size:
    type: memory_distribution
    description: >
      The size (MB) of the Telemetry pending pings exceeding the maximum file
      size

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram TELEMETRY_DISCARDED_PENDING_PINGS_SIZE_MB.
    memory_unit: megabyte
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_DISCARDED_PENDING_PINGS_SIZE_MB

  discarded_archived_pings_size:
    type: memory_distribution
    description: >
      The size (MB) of the Telemetry archived, compressed, pings exceeding the
      maximum file size

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram TELEMETRY_DISCARDED_ARCHIVED_PINGS_SIZE_MB.
    memory_unit: megabyte
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_DISCARDED_ARCHIVED_PINGS_SIZE_MB

  discarded_send_pings_size:
    type: memory_distribution
    description: >
      The size (MB) of the ping data submitted to Telemetry exceeding the
      maximum size

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram TELEMETRY_DISCARDED_SEND_PINGS_SIZE_MB.
    memory_unit: megabyte
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_DISCARDED_SEND_PINGS_SIZE_MB

  compress:
    type: timing_distribution
    description: >
      Time taken to compress telemetry object (ms)

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_COMPRESS.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_COMPRESS

  send_success:
    type: timing_distribution
    description: >
      Time needed (in ms) for a successful send of a Telemetry ping to the
      servers and getting a reply back.

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_SEND_SUCCESS.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1318284
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1318284
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_SEND_SUCCESS

  send_failure:
    type: timing_distribution
    description: >
      Time needed (in ms) for a failed send of a Telemetry ping to the servers
      and getting a reply back.

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_SEND_FAILURE.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1318284
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1318284
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_SEND_FAILURE

  send_failure_type:
    type: labeled_counter
    description: >
      Counts of the different ways sending a Telemetry ping can fail.

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram TELEMETRY_SEND_FAILURE_TYPE.
    labels:
      - eOK
      - eRequest
      - eUnreachable
      - eChannelOpen
      - eRedirect
      - abort
      - timeout
      - eTooLate
      - eTerminated
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1367110
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1501303
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1367110
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1501303
    notification_emails:
      - telemetry-client-dev@mozilla.com
      - chutten@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_SEND_FAILURE_TYPE

  send_failure_type_per_ping:
    type: dual_labeled_counter
    description: >
      Counts of the different ways sending a Telemetry ping can fail per ping
      type.

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram TELEMETRY_SEND_FAILURE_TYPE_PER_PING.
    dual_labels:
      key:
        description: Ping type.
      category:
        labels:
          - eOK
          - eRequest
          - eUnreachable
          - eChannelOpen
          - eRedirect
          - abort
          - timeout
          - eTooLate
          - eTerminated
        description: Labels of the keyed categorical legacy telemetry histogram
          TELEMETRY_SEND_FAILURE_TYPE_PER_PING.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1438896
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1438896
    notification_emails:
      - telemetry-client-dev@mozilla.com
      - chutten@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_SEND_FAILURE_TYPE_PER_PING

  stringify:
    type: timing_distribution
    description: >
      Time to stringify telemetry object (ms)

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram TELEMETRY_STRINGIFY.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: TELEMETRY_STRINGIFY

  success:
    type: labeled_counter
    description: >
      Successful telemetry submission

      This metric was generated to correspond to the Legacy Telemetry boolean
      histogram TELEMETRY_SUCCESS.
    labels:
      - "false"
      - "true"
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_SUCCESS

  invalid_ping_type_submitted:
    type: labeled_counter
    description: >
      Count of individual invalid ping types that were submitted to Telemetry.

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_INVALID_PING_TYPE_SUBMITTED.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_INVALID_PING_TYPE_SUBMITTED

  invalid_payload_submitted:
    type: counter
    description: >
      Count of individual invalid payloads that were submitted to Telemetry.

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_INVALID_PAYLOAD_SUBMITTED.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1292226
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1292226
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_INVALID_PAYLOAD_SUBMITTED

  ping_evicted_for_server_errors:
    type: counter
    description: >
      Number of Telemetry ping files evicted due to server errors (4XX HTTP code
      received)

      This metric was generated to correspond to the Legacy Telemetry count
      histogram TELEMETRY_PING_EVICTED_FOR_SERVER_ERRORS.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944631
    notification_emails:
      - telemetry-client-dev@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_PING_EVICTED_FOR_SERVER_ERRORS

  event_ping_sent:
    type: labeled_counter
    description: >
      Number of 'event' pings sent, by reason

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram TELEMETRY_EVENT_PING_SENT.
    labels:
      - periodic
      - max
      - shutdown
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1460595
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1460595
    notification_emails:
      - telemetry-client-dev@mozilla.com
      - chutten@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_EVENT_PING_SENT

  event_registration_error:
    type: labeled_counter
    description: >
      Number of event registration failures, by field causing the failure

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram TELEMETRY_EVENT_REGISTRATION_ERROR.
    labels:
      - Other
      - Name
      - Category
      - Method
      - Object
      - ExtraKeys
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1480204
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1480204
    notification_emails:
      - telemetry-client-dev@mozilla.com
      - chutten@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_EVENT_REGISTRATION_ERROR

  event_recording_error:
    type: labeled_counter
    description: >
      Number of event recording failures, by type of failure

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram TELEMETRY_EVENT_RECORDING_ERROR.
    labels:
      - UnknownEvent
      - Expired
      - ExtraKey
      - Value
      - Extra
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1480204
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1480204
    notification_emails:
      - telemetry-client-dev@mozilla.com
      - chutten@mozilla.com
    expires: never
    telemetry_mirror: h#TELEMETRY_EVENT_RECORDING_ERROR

usage:
  profile_id:
    type: uuid
    lifetime: user
    description: |
      A UUID uniquely identifying the profile,
      not shared with other telemetry data.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1926829
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1926829
    data_sensitivity:
      - technical
      - highly_sensitive
    notification_emails:
      - glean-team@mozilla.com
      - jrediger@mozilla.com
      - loines@mozilla.com
    expires: never
    send_in_pings:
      - usage-reporting
      - usage-deletion-request
      - onboarding-opt-out
  profile_group_id:
    type: uuid
    lifetime: user
    description: |
      A UUID uniquely identifying the profile group,
      not shared with other telemetry data.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944648
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944648
    data_sensitivity:
      - technical
      - highly_sensitive
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
      - jhirsch@mozilla.com
    expires: never
    send_in_pings:
      - usage-reporting
      - usage-deletion-request
      - onboarding-opt-out
  os:
    type: string
    lifetime: application
    send_in_pings:
      - usage-reporting
      - onboarding-opt-out
    description: |
      The name of the operating system.
      Possible values:
      Android, iOS, Linux, Darwin, Windows,
      FreeBSD, NetBSD, OpenBSD, Solaris, Unknown
    bugs:
      - https://bugzilla.mozilla.org/1497894
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1512938#c3
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never
  os_version:
    type: string
    lifetime: application
    send_in_pings:
      - usage-reporting
      - onboarding-opt-out
    description: |
      The user-visible version of the operating system (e.g. "1.2.3").
      If the version detection fails, this metric gets set to `Unknown`.
    bugs:
      - https://bugzilla.mozilla.org/1497894
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1512938#c3
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never
  windows_build_number:
    type: quantity
    lifetime: application
    send_in_pings:
      - usage-reporting
      - onboarding-opt-out
    description: |
      The optional Windows build number, reported by Windows
      (e.g. 22000) and not set for other platforms.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1802094
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1802094
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never
    unit: build_number
  windows_backup_enabled:
    type: boolean
    lifetime: application
    send_in_pings:
      - usage-reporting
    description: |
      Tracks if Windows Backup is enabled and configured to back up applications.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1968600
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1968600
    data_sensitivity:
      - technical
    notification_emails:
      - install-update@mozilla.com
    expires: never
  windows_user_profile_age_in_days:
    type: quantity
    unit: days
    lifetime: application
    send_in_pings:
      - usage-reporting
    description: |
        The age of the current users home folder in days.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1968710
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1968710
    data_sensitivity:
      - technical
    notification_emails:
      - install-update@mozilla.com
    expires: never
  app_build:
    type: string
    lifetime: application
    send_in_pings:
      - usage-reporting
      - onboarding-opt-out
    description: |
      The build identifier generated by the CI system (e.g. "1234/A").
      If the value was not provided through configuration,
      this metric gets set to `Unknown`.
    bugs:
      - https://bugzilla.mozilla.org/1508305
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1512938#c3
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never
  app_display_version:
    type: string
    lifetime: application
    send_in_pings:
      - usage-reporting
      - onboarding-opt-out
    description: |
      The user visible version string (e.g. "1.0.3").
      If the value was not provided through configuration,
      this metric gets set to `Unknown`.
    bugs:
      - https://bugzilla.mozilla.org/1508305
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1508305#c9
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never
  app_channel:
    type: string
    lifetime: application
    send_in_pings:
      - usage-reporting
      - onboarding-opt-out
    description: |
      The channel the application is being distributed on.
    bugs:
      - https://bugzilla.mozilla.org/1520741
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1520741#c18
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never
  first_run_date:
    type: datetime
    lifetime: user
    send_in_pings:
      - usage-reporting
      - onboarding-opt-out
    time_unit: day
    description: |
      The date of the profile's first use. Set from `ProfileAge.firstUse`
    bugs:
      - https://bugzilla.mozilla.org/1525045
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1525045#c18
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never
  reason:
    type: string
    lifetime: ping
    send_in_pings:
      - usage-reporting
    description: |
      The reason the usage-reporting ping was sent.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1557048
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1609218#c4
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never
  is_default_browser:
    type: boolean
    lifetime: application
    send_in_pings:
      - usage-reporting
      - baseline
      - onboarding-opt-out
    no_lint:
      - BASELINE_PING
    description: |
      Whether Firefox is set as the default browser.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never
  distribution_id:
    type: string
    lifetime: application
    send_in_pings:
      - usage-reporting
      - baseline
      - onboarding-opt-out
    no_lint:
      - BASELINE_PING
    description: |
      The distribution id associated with the install of Firefox.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1944090
    data_sensitivity:
      - technical
    notification_emails:
      - glean-team@mozilla.com
      - loines@mozilla.com
    expires: never

browser.engagement:
  session_time_including_suspend:
    type: quantity
    description: >
      The duration of the session in milliseconds, including the time the
      device was suspended.
      This metric was generated to correspond to the Legacy Telemetry
      scalar browser.engagement.session_time_including_suspend.
    bugs:
      - https://bugzil.la/1205985
    data_reviews:
      - https://bugzil.la/1205985
    notification_emails:
      - padenot@mozilla.com
    expires: never
    unit: ms
    telemetry_mirror: BROWSER_ENGAGEMENT_SESSION_TIME_INCLUDING_SUSPEND

  session_time_excluding_suspend:
    type: quantity
    description: >
      The duration of the session in milliseconds, excluding the time the
      device was suspended.
      This metric was generated to correspond to the Legacy Telemetry
      scalar browser.engagement.session_time_excluding_suspend.
    bugs:
      - https://bugzil.la/1205985
    data_reviews:
      - https://bugzil.la/1205985
    notification_emails:
      - padenot@mozilla.com
    expires: never
    unit: ms
    telemetry_mirror: BROWSER_ENGAGEMENT_SESSION_TIME_EXCLUDING_SUSPEND

browser.timings:
  last_shutdown:
    type: quantity
    description: >
      The time, in milliseconds, it took to complete the last shutdown. On
      successful shutdown, Telemetry saves this to disk into
      Telemetry.ShutdownTime.txt. On the next startup this is loaded and
      recorded.
      This metric was generated to correspond to the Legacy Telemetry
      scalar browser.timings.last_shutdown.
    bugs:
      - https://bugzil.la/1429510
    data_reviews:
      - https://bugzil.la/1429510
    notification_emails:
      - perf-telemetry-alerts@mozilla.com
      - florian@mozilla.com
    expires: never
    unit: ms
    telemetry_mirror: BROWSER_TIMINGS_LAST_SHUTDOWN

onboarding_opt_out:
  # The `onboarding-opt-out` ping does not include any info sections, and
  # therefore needs to capture experiments and rollouts independently.  This
  # data layout agrees with the `nimbus-targeting-context` ping for ease of
  # analysis.
  active_experiments:
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1942194
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1942194
    expires: never
    notification_emails:
      - glean-team@mozilla.com
      - jrediger@mozilla.com
      - loines@mozilla.com
      - dberry@mozilla.com
    send_in_pings:
      - onboarding-opt-out
    description: >
      The slugs of the actively enrolled experiments.
    data_sensitivity:
      - interaction
    type: object
    structure:
      type: array
      items:
        type: string

  active_rollouts:
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1942194
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1942194
    expires: never
    notification_emails:
      - glean-team@mozilla.com
      - jrediger@mozilla.com
      - loines@mozilla.com
      - dberry@mozilla.com
    send_in_pings:
      - onboarding-opt-out
    description: >
      The slugs of the actively enrolled rollouts.
    data_sensitivity:
      - interaction
    type: object
    structure:
      type: array
      items:
        type: string

  enrollments_map:
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1942194
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1942194
    expires: never
    notification_emails:
      - glean-team@mozilla.com
      - jrediger@mozilla.com
      - loines@mozilla.com
      - dberry@mozilla.com
    send_in_pings:
      - onboarding-opt-out
    description: >
      Information about historic enrollments, including the branches enrolled.
    data_sensitivity:
      - technical
    type: object
    structure:
      type: array
      items:
        type: object
        properties:
          experimentSlug:
            type: string
          branchSlug:
            type: string

termsofuse:
  version:
    type: quantity
    description: >
      The version of the Terms of Use the user accepted.
    unit: version
    lifetime: application
    send_in_pings:
      - metrics
    notification_emails:
      - mviar@mozilla.com
      - omc@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1971184
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1974150
    expires: never

  date:
    type: datetime
    description: >
      The timestamp when the user accepted the Terms of Use.
    time_unit: millisecond
    lifetime: application
    send_in_pings:
      - metrics
    notification_emails:
      - mviar@mozilla.com
      - omc@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1971184
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1974150
    expires: never

third.party.modules:
  blocked_modules:
    type: string_list
    description: |
      List of all DLL filenames that are on the dynamic blocklist.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1963853
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1963853
    data_sensitivity:
      - technical
    notification_emails:
      - gstoll@mozilla.com
    expires: never
    send_in_pings:
      - third-party-modules

  modules:
    type: object
    description: |
      The third-party modules we saw get loaded into Firefox.
      Maximum of 100 modules.
      ```text
      [{
        resolvedDllName: sanitized string name of the module as resolved by the Windows loader,
        fileVersion: string version of the DLL as contained in its resources's fixed version information,
        companyName: string value of the CompanyName field as extracted from the DLL's version information. This property is only present when such version info is present, and when the 'signedBy' property is absent,
        signedBy: string name of the organization whose certificate was used to sign the DLL. Only present for signed modules,
        trustFlags: Flags that indicate this module's level of trustworthiness. This corresponds to one or more `mozilla::ModuleTrustFlags` OR'd together to form a number,
      }, ...]
      ```
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1963853
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1963853
    data_sensitivity:
      - technical
    notification_emails:
      - gstoll@mozilla.com
    expires: never
    send_in_pings:
      - third-party-modules
    structure:
      type: array
      items:
        type: object
        properties:
          resolvedDllName:
            type: string
          fileVersion:
            type: string
          companyName:
            type: string
          signedBy:
            type: string
          trustFlags:
            type: number

  processes:
    type: object
    description: |
      The per-process third-party module load context and events.
      ```text
      [{
        processName: string containing processType and pid, formatted as `${processType}.0x${pid}`,
        processType: one of the process string names specified in `xpcom/build/GeckoProcessTypes.h` or "browser" for Default,
        elapsed: number of seconds since process creation that this object was generated,
        xulLoadDurationMS: number of milliseconds it took to load xul.dll,
        sanitizationFailures: number of dropped events due to failures in path sanitization,
        trustTestFailures: number of dropped events due to failures computing trust levels,
        events: [{ // Array of module load events for this process. The entries of this array are ordered to be in sync with the combinedStacks.stacks array (see below).
          processUptimeMS: number of milliseconds between process creation and when this event was generated,
          loadDurationMS: number of milliseconds of time spent loading this module,
          threadID: numeric id of the thread that loaded the module,
          threadName: string name of the thread that loaded the module, when applicable,
          requestedDllName: sanitized string name of the module that was requested by the invoking code. Only exists when it is different from resolvedDllName,
          baseAddress: string formatted as `0x%x`, the base address to which the loader mapped the module,
          moduleIndex: numeric index of the element in the `modules` array that contains details about the module that was loaded during this event,
          isDependent: boolean, true if the module is included in the executable's Import Directory Table,
          loadStatus: number, corresponding to a value of `ModuleLoadInfo::Status`, of the status of the DLL load,
        }, ...], // Max 50 events
        combinedStacks: {
          memoryMap: [[
            <string> name of the module symbol file (e.g. `xul.pdb`),
            <string> breakpad identifier for the module (e.g. `08A541B5942242BDB4AEABD8C87E4CFF2`),
          ], ...],
          stacks: [ // Array of stacks for this process. These entries are ordered to be in sync with the events array (above).
            [
              [
                <integer> module index, or -1 for failure/invalid,
                <integer> program counter relative to its module base, or an absolute PC if the module index is -1,
              ], ... // Up to 512 stack frames
            ], ... // Up to 50 stack traces
          ],
        ]
      }, ...] // Up to 100 processes' information
      ```
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1963853
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1963853
    data_sensitivity:
      - technical
    notification_emails:
      - gstoll@mozilla.com
    expires: never
    send_in_pings:
      - third-party-modules
    structure:
      type: array
      items:
        type: object
        properties:
          processName:
            type: string
          processType:
            type: string
          elapsed:
            type: string # float
          xulLoadDurationMS:
            type: string # float
          sanitizationFailures:
            type: number
          trustTestFailures:
            type: number
          events:
            type: array
            items:
              type: object
              properties:
                processUptimeMS:
                  type: number
                loadDurationMS:
                  type: string # float
                threadID:
                  type: number
                threadName:
                  type: string
                requestedDllName:
                  type: string
                baseAddress:
                  type: string
                moduleIndex:
                  type: number
                isDependent:
                  type: boolean
                loadStatus:
                  type: number
          combinedStacks:
            type: object
            properties:
              memoryMap:
                type: array
                items:
                  type: array
                  items:
                    type: string
              stacks:
                type: array
                items:
                  type: array
                  items:
                    type: array
                    items:
                      type: number