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 (676 lines) | stat: -rw-r--r-- 24,072 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
# 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/.

# Adding a new metric? We have docs for that!
# https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html

---
$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
$tags:
  - 'Core :: Privacy: Anti-Tracking'

contentblocking:
  tp_allowlist_convenience_enabled:
    type: boolean
    description: >
      True if the tracking protection allowlist baseline option is enabled. Updates on "idle daily".
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1972607
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1972607
    notification_emails:
      - privacy-team@mozilla.org
    expires: never

  tp_allowlist_baseline_enabled:
    type: boolean
    description: >
      True if the tracking protection allowlist convenience option is enabled. Updates on "idle daily".
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1972607
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1972607
    notification_emails:
      - privacy-team@mozilla.org
    expires: never

  category:
    type: quantity
    description: >
      This scalar reports the value of the content blocking category pref
      (0 = "standard", 1 = "strict", 2 = "custom", 3 = some other value,
      this is not supported).
      This metric was generated to correspond to the Legacy Telemetry
      scalar contentblocking.category.
    bugs:
      - https://bugzil.la/1529425
    data_reviews:
      - https://bugzil.la/1529425
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    unit: content blocking category
    telemetry_mirror: CONTENTBLOCKING_CATEGORY

  cryptomining_blocking_enabled:
    type: boolean
    description: >
      True if cryptominer blocking is enabled globally at startup.
      This metric was generated to correspond to the Legacy Telemetry
      scalar contentblocking.cryptomining_blocking_enabled.
    bugs:
      - https://bugzil.la/1522919
    data_reviews:
      - https://bugzil.la/1522919
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: CONTENTBLOCKING_CRYPTOMINING_BLOCKING_ENABLED

  fingerprinting_blocking_enabled:
    type: boolean
    description: >
      True if fingerprinter blocking is enabled globally at startup.
      This metric was generated to correspond to the Legacy Telemetry
      scalar contentblocking.fingerprinting_blocking_enabled.
    bugs:
      - https://bugzil.la/1522919
    data_reviews:
      - https://bugzil.la/1522919
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: CONTENTBLOCKING_FINGERPRINTING_BLOCKING_ENABLED

  trackers_blocked_count:
    type: counter
    description: >
      A count of the number of tracking events blocked.
      This metric was generated to correspond to the Legacy Telemetry
      scalar contentblocking.trackers_blocked_count.
    bugs:
      - https://bugzil.la/1577030
      - https://bugzil.la/1610894
      - https://bugzil.la/1645088
      - https://bugzil.la/1678209
    data_reviews:
      - https://bugzil.la/1577030
      - https://bugzil.la/1610894
      - https://bugzil.la/1645088
      - https://bugzil.la/1678209
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: CONTENTBLOCKING_TRACKERS_BLOCKED_COUNT

  canvas_fingerprinting_per_tab:
    type: labeled_custom_distribution
    description: >
      Type of canvas fingerprinter detected (keyed by known_fingerprinting_text
      or unknown), 0 = none

      This metric was generated to correspond to the Legacy Telemetry enumerated
      histogram CANVAS_FINGERPRINTING_PER_TAB.
    labels:
      - "known_text"
      - "unknown"
      - "unknown_matched"
      - "known_text_matched"
    range_min: 0
    range_max: 8
    bucket_count: 9
    histogram_type: linear
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1847990
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1912169
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1946406
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1847990
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1912169
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1946406
    notification_emails:
      - seceng-telemetry@mozilla.com
    expires: 150
    telemetry_mirror: CANVAS_FINGERPRINTING_PER_TAB

  font_fingerprinting_per_tab:
    type: labeled_counter
    description: >
      Whether a probable font fingerprinting attempt was detected

      This metric was generated to correspond to the Legacy Telemetry boolean
      histogram FONT_FINGERPRINTING_PER_TAB.
    labels:
      - "false"
      - "true"
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1847990
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1912169
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1946406
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1847990
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1912169
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1946406
    notification_emails:
      - seceng-telemetry@mozilla.com
    expires: 150
    telemetry_mirror: h#FONT_FINGERPRINTING_PER_TAB

  storage_access_granted_count:
    type: labeled_counter
    description: >
      A count of the granted storage access. ('StorageGranted' = There was a
      storage access granted, 'StorageAccessAPI' = the storage access was
      granted by the storage access API, 'OpenerAfterUserInteraction' = the
      storage access was granted due to the heuristic
      'OpenerAfterUserInteraction', 'Opener' = the storage access was granted
      due to the heuristic 'Opener', 'Redirect' = the storage access was granted
      due to the heuristic 'Redirect', 'RedirectTracker' = the storage access
      was granted due to the heuristic 'RedirectTracker'.) Note, StorageGranted
      is used as a baseline measurement, which should be the sum of all other
      measurements. We also duplicate all data reported into a corresponding
      *_CT label where the grant is given to a known classified tracker.

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram STORAGE_ACCESS_GRANTED_COUNT.
    labels:
      - StorageGranted
      - StorageAccessAPI
      - OpenerAfterUI
      - Opener
      - Redirect
      - RedirectTracker
      - Navigation
      - StorageGranted_CT
      - StorageAccessAPI_CT
      - OpenerAfterUI_CT
      - Opener_CT
      - Redirect_CT
      - RedirectTracker_CT
      - Navigation_CT
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1668199
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1940904
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1668199
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1940904
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: h#STORAGE_ACCESS_GRANTED_COUNT

  storage_access_remaining_days:
    type: custom_distribution
    description: >
      The time remaining until expiration per storage access permissions, in
      days (one record per permission, not averaged).

      This metric was generated to correspond to the Legacy Telemetry enumerated
      histogram STORAGE_ACCESS_REMAINING_DAYS.
    range_min: 0
    range_max: 60
    bucket_count: 61
    histogram_type: linear
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1668199
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1668199
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: STORAGE_ACCESS_REMAINING_DAYS

  query_stripping_count:
    type: labeled_counter
    description: >
      A count of the query stripping. ('Navigation' = There was a top-level
      loading via navigation, 'Redirect' = There was a top-level loading via
      redirect, 'StripForNavigation' = There was a stripping happened for a
      top-level navigation, 'StripForRedirect' = There was a stripping happened
      for a top-level redirect.

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram QUERY_STRIPPING_COUNT.
    labels:
      - Navigation
      - Redirect
      - StripForNavigation
      - StripForRedirect
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1706616
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1706616
    notification_emails:
      - tihuang@mozilla.com
      - emz@mozilla.com
      - seceng-telemetry@mozilla.com
    expires: never
    telemetry_mirror: h#QUERY_STRIPPING_COUNT

  query_stripping_param_count:
    type: custom_distribution
    description: >
      If query params get stripped, how many per navigation/redirect.

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram QUERY_STRIPPING_PARAM_COUNT.
    range_min: 1
    range_max: 100
    bucket_count: 25
    histogram_type: exponential
    unit: query params
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1762374
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1762374
    notification_emails:
      - tihuang@mozilla.com
      - emz@mozilla.com
      - seceng-telemetry@mozilla.com
    expires: never
    telemetry_mirror: QUERY_STRIPPING_PARAM_COUNT

  query_stripping_count_by_param:
    type: labeled_counter
    description: >
      Counts how often specific query parameters are stripped.

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram QUERY_STRIPPING_COUNT_BY_PARAM.
    labels:
      - param_mc_eid
      - param_oly_anon_id
      - param_oly_enc_id
      - param___s
      - param_vero_id
      - param__hsenc
      - param_mkt_tok
      - param_fbclid
      - param_gclid
      - param_dclid
      - param_msclkid
      - param__openstat
      - param_yclid
      - param_wickedid
      - param_twclid
      - param___hssc
      - param___hstc
      - param___hsfp
      - param_hsctatracking
      - param_wbraid
      - param_gbraid
      - param_ysclid
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1762374
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1830058
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1762374
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1830058
    notification_emails:
      - tihuang@mozilla.com
      - emz@mozilla.com
      - seceng-telemetry@mozilla.com
    expires: never
    telemetry_mirror: h#QUERY_STRIPPING_COUNT_BY_PARAM

  email_tracker_count:
    type: labeled_counter
    description: >
      A count of the classified email trackers. ('base_normal' = The classified
      email tracker is in base category and loaded under a normal site,
      'content_normal' = The classified email tracker is in content category and
      loaded under a normal site, 'base_email_webapp' = The classified email
      tracker is in base category and loaded under a known email webapp,
      'content_email_webapp' = The classified email tracker is in content
      category and loaded under a known email webapp.)

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram EMAIL_TRACKER_COUNT.
    labels:
      - base_normal
      - content_normal
      - base_email_webapp
      - content_email_webapp
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1773701
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1773701
    notification_emails:
      - tihuang@mozilla.com
      - seceng-telemetry@mozilla.com
    expires: never
    telemetry_mirror: h#EMAIL_TRACKER_COUNT

  email_tracker_embedded_per_tab:
    type: labeled_custom_distribution
    description: >
      A count of the embedded third-party email trackers for known email web
      apps. ('base_normal' = The count of loaded base email trackers under
      normal sites, 'content_normal' = The count of loaded content email trackers
      under normal sites, 'all_normal' = The count of all loaded email trackers
      under normal sites, 'base_emailapp' = The count of loaded base email
      trackers under email webapps, 'content_emailapp' = The count of loaded
      content email trackers under email webapps, 'all_emailapp' = The count of
      all loaded email trackers under email webapps.)

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram EMAIL_TRACKER_EMBEDDED_PER_TAB.
    labels:
      - base_normal
      - content_normal
      - all_normal
      - base_emailapp
      - content_emailapp
      - all_emailapp
    range_min: 1
    range_max: 1000
    bucket_count: 100
    histogram_type: exponential
    unit: third-party email trackers
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1781249
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1781249
    notification_emails:
      - tihuang@mozilla.com
      - seceng-telemetry@mozilla.com
    expires: never
    telemetry_mirror: EMAIL_TRACKER_EMBEDDED_PER_TAB

  strip_on_share_params_removed:
    type: custom_distribution
    description: >
      The number of query parameters removed, if any, when strip on share is
      used

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram STRIP_ON_SHARE_PARAMS_REMOVED.
    range_min: 1
    range_max: 100
    bucket_count: 50
    histogram_type: linear
    unit: query parameters
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1833105
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1833105
    notification_emails:
      - emz@mozilla.com
    expires: never
    telemetry_mirror: STRIP_ON_SHARE_PARAMS_REMOVED

  strip_on_share_length_decrease:
    type: custom_distribution
    description: >
      The decrease in the length of the URL when strip on share is used, only if
      at least one parameter is stripped

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram STRIP_ON_SHARE_LENGTH_DECREASE.
    range_min: 1
    range_max: 1000
    bucket_count: 100
    histogram_type: exponential
    unit: characters
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1833105
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1833105
    notification_emails:
      - emz@mozilla.com
    expires: never
    telemetry_mirror: STRIP_ON_SHARE_LENGTH_DECREASE

  cookie_behavior:
    type: custom_distribution
    description: >
      Records the cookie behavior pref at startup.

      This metric was generated to correspond to the Legacy Telemetry enumerated
      histogram COOKIE_BEHAVIOR.
    range_min: 0
    range_max: 15
    bucket_count: 16
    histogram_type: linear
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1484251
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1561384
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1484251
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1561384
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: COOKIE_BEHAVIOR

  tracking_protection_enabled:
    type: labeled_counter
    description: >
      True if tracking protection is enabled globally at startup.

      This metric was generated to correspond to the Legacy Telemetry boolean
      histogram TRACKING_PROTECTION_ENABLED.
    labels:
      - "false"
      - "true"
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1058133
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1058133
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: h#TRACKING_PROTECTION_ENABLED

  tracking_protection_pbm_disabled:
    type: labeled_counter
    description: >
      True if tracking protection in Private Browsing mode is disabled at
      startup.

      This metric was generated to correspond to the Legacy Telemetry boolean
      histogram TRACKING_PROTECTION_PBM_DISABLED.
    labels:
      - "false"
      - "true"
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1200944
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1200944
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: h#TRACKING_PROTECTION_PBM_DISABLED

  tracking_protection_shield:
    type: custom_distribution
    description: >
      Status of the shield icon for each top-level pageload (outside of Private
      Browsing mode) when tracking protection is enabled (0 = there was a page
      load, this is used as a baseline, 1 = shield crossed out because CB was
      disabled on this page by the user, 2 = shield shown because some content
      was blocked)

      This metric was generated to correspond to the Legacy Telemetry enumerated
      histogram TRACKING_PROTECTION_SHIELD.
    range_min: 0
    range_max: 4
    bucket_count: 5
    histogram_type: linear
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1058133
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1659762
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1058133
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1659762
    notification_emails:
      - safebrowsing-telemetry@mozilla.org
    expires: never
    telemetry_mirror: TRACKING_PROTECTION_SHIELD

  fingerprinters_blocked_count:
    type: labeled_counter
    description: >
      A count of the status of fingerprinter blocking per top level page load.
      ('pageLoad' = There was a page load, 'blocked' = at least one
      fingerprinter was blocked, 'allowed' = at least one fingerprinter was
      detected and allowed.) Note, pageLoad is used as a baseline measurement.

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram FINGERPRINTERS_BLOCKED_COUNT.
    labels:
      - pageLoad
      - blocked
      - allowed
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1522919
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1522919
    notification_emails:
      - privacy-team@mozilla.org
      - seceng-telemetry@mozilla.com
    expires: never
    telemetry_mirror: h#FINGERPRINTERS_BLOCKED_COUNT

  cryptominers_blocked_count:
    type: labeled_counter
    description: >
      A count of the status of cryptominer blocking per top level page load.
      ('pageLoad' = There was a page load, 'blocked' = at least one cryptominer
      was blocked, 'allowed' = at least one cryptominer was detected and
      allowed.) Note, pageLoad is used as a baseline measurement.

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram CRYPTOMINERS_BLOCKED_COUNT.
    labels:
      - pageLoad
      - blocked
      - allowed
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1522919
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1522919
    notification_emails:
      - privacy-team@mozilla.org
      - seceng-telemetry@mozilla.com
    expires: never
    telemetry_mirror: h#CRYPTOMINERS_BLOCKED_COUNT

cookie_purging:
  origins_purged:
    type: custom_distribution
    description: >
      The number of origins that were purged during one run of cookie purging.

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram COOKIE_PURGING_ORIGINS_PURGED.
    range_min: 1
    range_max: 500
    bucket_count: 30
    histogram_type: exponential
    unit: origins
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: COOKIE_PURGING_ORIGINS_PURGED

  trackers_with_user_interaction:
    type: custom_distribution
    description: >
      The number of trackers that had user interaction at the time of purging.

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram COOKIE_PURGING_TRACKERS_WITH_USER_INTERACTION.
    range_min: 1
    range_max: 500
    bucket_count: 30
    histogram_type: exponential
    unit: trackers
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: COOKIE_PURGING_TRACKERS_WITH_USER_INTERACTION

  trackers_user_interaction_remaining_days:
    type: timing_distribution
    description: >
      The time remaining until expiration per user interaction permissions of
      trackers at the time of purging, in days (one record per tracker, not
      averaged).

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram COOKIE_PURGING_TRACKERS_USER_INTERACTION_REMAINING_DAYS.
    time_unit: day
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: COOKIE_PURGING_TRACKERS_USER_INTERACTION_REMAINING_DAYS

  duration:
    type: timing_distribution
    description: >
      Time spent per daily cookie purging activity, in milliseconds. This
      measures the time for all batch iterations of that day.

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram COOKIE_PURGING_DURATION_MS.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: COOKIE_PURGING_DURATION_MS

  interval_hours:
    type: timing_distribution
    description: >
      How much time (in hours) passed between the current cookie purging
      activity and the one before that (cookie purging is run on 'daily idle')

      This metric was generated to correspond to the Legacy Telemetry linear
      histogram COOKIE_PURGING_INTERVAL_HOURS.
    time_unit: hour
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1630053
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1656134
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1689271
    notification_emails:
      - privacy-team@mozilla.org
    expires: never
    telemetry_mirror: COOKIE_PURGING_INTERVAL_HOURS