# 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 defines the metrics that are recorded by glean telemetry. They are
# automatically converted to Kotlin code at build time using the `glean_parser`
# PyPI package.

$schema: moz://mozilla.org/schemas/glean/metrics/1-0-0

browser.engagement:
  click:
    type: event
    description: >
      Just testing events
    bugs:
      - 123456789
    data_reviews:
      - N/A 
    notification_emails:
      - CHANGE-ME@test-only.com
    extra_keys:
      key1:
        description: "This is key one"
      key2:
        description: "This is key two"
    expires: 2100-01-01 
    
  event_no_keys:
    type: event
    description: >
      Just testing events without keys
    bugs:
      - 123456789
    data_reviews:
      - N/A 
    notification_emails:
      - CHANGE-ME@test-only.com
    expires: 2100-01-01

basic:
  os:
    type: string
    description: >
      The name of the os
    bugs:
      - 123456789
    data_reviews:
      - N/A 
    notification_emails:
      - CHANGE-ME@test-only.com
    expires: 2100-01-01

test:
  test_string_list:
    type: string_list
    description: >
      Testing StringList ping
    send_in_pings:
      - test_string_list
    lifetime: user
    bugs:
      - 1234567890
    data_reviews:
      - N/A 
    notification_emails:
      - CHANGE-ME@test-only.com
    expires: 2100-01-01

  test_counter:
    type: counter
    description: >
      Testing counter
    send_in_pings:
      - test_string_list
    lifetime: user
    bugs:
      - 1234567890
    data_reviews:
      - N/A 
    notification_emails:
      - CHANGE-ME@test-only.com
    expires: 2100-01-01

  test_timespan:
    type: timespan
    description: >
      Testing a timespan
    time_unit: microsecond
    lifetime: application
    bugs:
      - 1508948
    data_reviews:
      - N/A 
    notification_emails:
      - CHANGE-ME@test-only.com
    expires: 2100-01-01
