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/.
4
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
7
8---
9$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
10
11browser.engagement:
12  active_ticks:
13    type: counter
14    description: |
15      The number of five-second intervals ('ticks') the user was considered
16      'active'.
17
18      'active' means keyboard or mouse interaction with the application.
19      It doesn't take into account whether or not the window has focus or is in
20      the foreground, only if it is receiving these interaction events.
21
22      Migrated from Telemetry's `browser.engagement.active_ticks`.
23    metadata: &metadata
24      tags:
25        - "Firefox :: General"
26    bugs:
27      - https://bugzilla.mozilla.org/show_bug.cgi?id=1376942  # Telemetry
28      - https://bugzilla.mozilla.org/show_bug.cgi?id=1545172  # Telemetry
29      - https://bugzilla.mozilla.org/show_bug.cgi?id=1741674
30      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755050
31    data_reviews:
32      - https://bugzilla.mozilla.org/show_bug.cgi?id=1545172#c8
33    data_sensitivity:
34      - interaction
35    notification_emails:
36      - loines@mozilla.com
37    expires: 106
38    send_in_pings:
39      - baseline
40      - metrics
41    no_lint:
42      - BASELINE_PING
43
44  uri_count:
45    type: counter
46    description: |
47      The number of total non-unique http(s) URIs visited, including page
48      reloads, after the session has been restored. URIs on minimized or
49      background tabs may also be counted. Private browsing uris are included.
50
51      Migrated from Telemetry's
52      `browser.engagement.total_uri_count_normal_and_private_mode`.
53    metadata: *metadata
54    bugs:
55      - https://bugzilla.mozilla.org/show_bug.cgi?id=1535169  # Telemetry
56      - https://bugzilla.mozilla.org/show_bug.cgi?id=1741674
57      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755050
58    data_reviews:
59      - https://bugzilla.mozilla.org/show_bug.cgi?id=1535169#c14
60    data_sensitivity:
61      - interaction
62    notification_emails:
63      - loines@mozilla.com
64    expires: 106
65    send_in_pings:
66      - baseline
67      - metrics
68    no_lint:
69      - BASELINE_PING
70