Revision control
Copy as Markdown
# 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
# This file defines the metrics that are recorded by the Glean SDK. They are
# automatically converted to Kotlin code at build time using the `glean_parser`
# PyPI package.
---
browser.engagement:
click:
type: event
description: |
Just testing events
bugs:
data_reviews:
- N/A
notification_emails:
- CHANGE-ME@example.com
extra_keys:
key1:
type: string
description: "This is key one"
key2:
type: string
description: "This is key two"
And1WithUnusualCASING:
type: boolean
description: "This is key three"
expires: 2100-01-01
no_lint:
- EXPIRATION_DATE_TOO_FAR
event_no_keys:
type: event
description: |
Just testing events without keys
bugs:
data_reviews:
- N/A
notification_emails:
- CHANGE-ME@example.com
expires: 2100-01-01
no_lint:
- EXPIRATION_DATE_TOO_FAR
basic:
os:
type: string
description: |
The name of the os
bugs:
data_reviews:
- N/A
notification_emails:
- CHANGE-ME@example.com
expires: 2100-01-01
no_lint:
- EXPIRATION_DATE_TOO_FAR
test:
string_list:
type: string_list
description: |
Testing StringList ping
send_in_pings:
- test-string-list
lifetime: user
bugs:
data_reviews:
- N/A
notification_emails:
- CHANGE-ME@example.com
expires: 2100-01-01
no_lint:
- USER_LIFETIME_EXPIRATION
- EXPIRATION_DATE_TOO_FAR
counter:
type: counter
description: |
Testing counter
send_in_pings:
- test-string-list
lifetime: user
bugs:
data_reviews:
- N/A
notification_emails:
- CHANGE-ME@example.com
expires: 2100-01-01
no_lint:
- USER_LIFETIME_EXPIRATION
- EXPIRATION_DATE_TOO_FAR
timespan:
type: timespan
description: |
Testing a timespan
time_unit: microsecond
lifetime: application
bugs:
data_reviews:
- N/A
notification_emails:
- CHANGE-ME@example.com
expires: 2100-01-01
no_lint:
- EXPIRATION_DATE_TOO_FAR
is_started:
type: boolean
description: |
Testing boolean
send_in_pings:
- baseline
lifetime: application
bugs:
data_reviews:
- N/A
notification_emails:
- CHANGE-ME@test-only.com
expires: 2100-01-01
no_lint:
- BASELINE_PING
- EXPIRATION_DATE_TOO_FAR
custom:
counter:
type: counter
description: |
A custom counter that goes on a custom ping
lifetime: ping
send_in_pings:
- sample
bugs:
data_reviews:
- N/A
notification_emails:
- CHANGE-ME@test-only.com
expires: 2100-01-01
no_lint:
- EXPIRATION_DATE_TOO_FAR
legacy_ids:
client_id:
type: uuid
description: |
Testing deletion request payload
send_in_pings:
- deletion-request
bugs:
data_reviews:
- N/A
notification_emails:
- CHANGE-ME@example.com
expires: 2100-01-01
no_lint:
- EXPIRATION_DATE_TOO_FAR
party:
balloons:
type: object
description: A collection of balloons
bugs:
data_reviews:
notification_emails:
- CHANGE-ME@example.com
expires: never
send_in_pings:
- sample
structure:
type: array
items:
type: object
properties:
colour:
type: string
diameter:
type: number
labels:
type: array
items:
type: string
animals:
type: object
description: >
Contains a list of party animals
notification_emails:
- CHANGE-ME@example.com
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
send_in_pings:
- sample
structure:
type: array
items:
type: string