Bug 1874684 - Part 4: Prefer const references instead of copying Instant values....
[gecko.git] / browser / base / content / metrics.yaml
blob4b23cc4e33f89c41298a54c6d391b15c09207eb4
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 # Adding a new metric? We have docs for that!
6 # https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html
8 ---
9 $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
10 $tags:
11   - 'Firefox :: General'
13 privacy.sanitize:
14   dialog_open:
15     type: event
16     description: >
17       Dispatched when one of the sanitize dialogs opens
18     bugs:
19       - https://bugzilla.mozilla.org/1856417
20     data_reviews:
21       - https://bugzilla.mozilla.org/show_bug.cgi?id=1856417#c4
22     notification_emails:
23       - hsohaney@mozilla.com
24       - pbz@mozilla.com
25     expires: 130
26     extra_keys:
27       context:
28         description: >
29           string representing which context the dialog was opened in,
30           one of ["browser", "clearSiteData", "clearHistory"]
31         type: string
32   clear:
33     type: event
34     description: >
35       Dispatched when the dialog is accepted (to clear)
36     bugs:
37       - https://bugzilla.mozilla.org/1856417
38     data_reviews:
39       - https://bugzilla.mozilla.org/show_bug.cgi?id=1856417#c4
40     notification_emails:
41       - hsohaney@mozilla.com
42       - pbz@mozilla.com
43     expires: 130
44     extra_keys:
45       context:
46         description: >
47           string representing which context the dialog was opened in,
48           one of ["browser", "clearSiteData", "clearHistory"]
49         type: string
50       history_form_data_downloads:
51         description: true if history, form data and downloads is selected to be cleared
52         type: boolean
53       cookies_and_storage:
54         description: true if cookies and storage is selected to be cleared
55         type: boolean
56       cache:
57         description: true if cache is selected to be cleared
58         type: boolean
59       site_settings:
60         description: true if site settings is selected to be cleared
61         type: boolean
62   clearing_time_span_selected:
63     type: event
64     description: >
65       The time span range selected to sanitize
66     bugs:
67       - https://bugzilla.mozilla.org/1856417
68     data_reviews:
69       - https://bugzilla.mozilla.org/show_bug.cgi?id=1856417#c4
70     notification_emails:
71       - hsohaney@mozilla.com
72       - pbz@mozilla.com
73     expires: 130
74     extra_keys:
75       time_span:
76         description: The timespan that was selected corresponding to one of Sanitizer.TIMESPAN_*'s value
78         type: string
79   load_time:
80     type: timing_distribution
81     time_unit: millisecond
82     description: >
83       How much time was spent to open the dialog, including loading data sizes
84     bugs:
85       - https://bugzilla.mozilla.org/1856417
86     data_reviews:
87       - https://bugzilla.mozilla.org/show_bug.cgi?id=1856417#c4
88     notification_emails:
89       - hsohaney@mozilla.com
90       - pbz@mozilla.com
91     expires:
92       130