Source code

Revision control

Copy as Markdown

Other Tools

# 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 is for Internal FOG Test Use Only.
---
test_only:
bad_code:
type: counter
description: |
Number of times we encountered bad code.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- test-ping
can_we_time_it:
type: timespan
time_unit: nanosecond
description: |
Test metric for a timespan.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- test-ping
cheesy_string:
type: string
description: |
Only the cheesiest of strings.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- test-ping
cheesy_string_list:
type: string_list
description: |
Only the cheesiest of strings. In list form!
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- test-ping
what_a_date:
type: datetime
time_unit: second
description: >
...To be writing FOG code.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- test-ping
what_id_it: # Using a different metrics yaml style for fun.
type: uuid
description: |
Just a UUID.
This is a test-only metric.
data_sensitivity: ["technical"]
notification_emails: ["glean-team@mozilla.com"]
expires: never
send_in_pings: ["test-ping"]
can_we_flag_it:
type: boolean
description: |
Test metric for a boolean.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- test-ping
do_you_remember:
type: memory_distribution
memory_unit: megabyte
description: |
They say it's the second thing to go.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
what_time_is_it:
type: timing_distribution
time_unit: microsecond
description: |
Adheres to at least two of the top ten fallacies programmers believe
about time.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_TIMING
mabels_kitchen_counters:
type: labeled_counter
description: |
Counts Mabels labeled by their kitchen counters.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
mabels_labeled_counters:
type: labeled_counter
description: |
Counts Mabels labeled by their kitchen counters.
Now with static labels.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
labels:
- next_to_the_fridge
- clean
mabels_bathroom_counters:
type: labeled_counter
description: |
Counts Mabels labeled by their bathroom counters.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
mabels_like_balloons:
type: labeled_boolean
description: |
Does the labeled Mabel like balloons?
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
mabels_like_labeled_balloons:
type: labeled_boolean
description: |
Does the labeled Mabel like balloons?
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
labels:
- water
- birthday_party
mabels_balloon_strings:
type: labeled_string
description: |
What do the labeled Mabel's liked balloons' strings say?
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
mabels_balloon_labels:
type: labeled_string
description: |
How does Mabel label her balloons?
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
labels:
- celebratory
- celebratory_and_snarky
mabels_label_maker:
type: labeled_string
description: |
Mabel just got a label maker and wants to party like it's
1999.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
mirror_time:
type: timespan
time_unit: nanosecond
description: |
Mirrored metric for a timespan.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- test-ping
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_TIMESPAN
mirror_time_nanos:
type: timespan
time_unit: nanosecond
description: |
Mirrored metric for a timespan.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- test-ping
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_TIMESPAN_NANOS
mirrors_for_labeled_bools:
type: labeled_boolean
description: |
Mirrored metric.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_LABELED_BOOL
one_ping_one_bool:
type: boolean
description: |
One bool for one ping only.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- one-ping-only
meaning_of_life:
type: quantity
unit: unfathomable
description: |
Measures the one true answer to the Ultimate Question of Life,
the Universe, and Everything.
Approximately.
This is a test-only metric.
bugs:
data_reviews:
data_sensitivity:
- technical
expires: never
notification_emails:
- glean-team@mozilla.com
send_in_pings:
- test-ping
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_QUANTITY
balloons:
type: object
description: A collection of balloons
bugs:
data_reviews:
notification_emails:
- CHANGE-ME@example.com
expires: never
structure:
type: array
items:
type: object
properties:
colour:
type: string
diameter:
type: number
test_only.ipc:
a_counter:
type: counter
description: |
This is a test-only metric.
Just counting things.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_COUNTER
a_bool:
type: boolean
description: |
This is a test-only metric.
Just flagging things.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_BOOLEAN_KIND
a_date:
type: datetime
time_unit: second
description: |
This is a test-only metric.
Just putting things on the calendar.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_DATE
a_string:
type: string
description: |
This is a test-only metric.
Just setting some strings.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_MULTIPLE_STORES_STRING
a_text:
type: text
description: |
This is a test-only metric.
For holding Text data.
bugs:
data_reviews:
data_sensitivity:
- web_activity
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
a_memory_dist:
type: memory_distribution
memory_unit: kilobyte
description: |
This is a test-only metric.
Just measuring memory.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_LINEAR
a_timing_dist:
type: timing_distribution
description: |
This is a test-only metric.
Just measuring time.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_EXPONENTIAL
a_custom_dist:
type: custom_distribution
description: |
This is a test-only metric.
Just measuring samples.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
range_min: 1
range_max: 2147483646
bucket_count: 10
histogram_type: linear
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_CUSTOM
a_string_list:
type: string_list
description: |
This is a test-only metric.
Just appending some strings.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_KEYED_BOOLEAN_KIND
an_event:
type: event
extra_keys:
extra1:
type: string
description: "Some extra data"
extra2:
type: string
description: "Some extra data again"
description: |
This is a test-only metric.
Just recording some events.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TelemetryTest_MirrorWithExtra_Object1
event_with_extra:
type: event
extra_keys:
extra1:
type: string
description: "Some extra data"
extra2:
type: quantity
description: "Some extra data again"
extra3_longer_name:
type: boolean
description: "Some extra data again. Also tests extras with underscores"
description: |
This is a test-only metric.
Just recording some events.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
no_extra_event:
type: event
description: |
This is a test-only metric.
Just recording some events without the extra fuss.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
telemetry_mirror: TelemetryTest_NotExpiredOptout_Object1
a_uuid:
type: uuid
description: |
This is a test-only metric.
Just recording some unique identifiers.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_STRING_KIND
a_labeled_counter:
type: labeled_counter
description: |
This is a test-only metric.
Just counting labeled things.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_ANOTHER_MIRROR_FOR_LABELED_COUNTER
another_labeled_counter:
type: labeled_counter
description: |
This is a test-only metric.
Just another metric counting labeled things.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_LABELED_COUNTER
a_quantity:
type: quantity
unit: squad
description: |
This is a test-only metric.
Just quantifying things.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
irate:
type: rate
description: |
This is a test-only metric.
A rate that isn't happy about it.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_RATE
rate_with_external_denominator:
type: rate
denominator_metric: test_only.ipc.an_external_denominator
description: |
This is a test-only metric.
A rate with a denominator that is Out There.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
an_external_denominator:
type: counter
description: |
This is a test-only metric.
A denominator not from around here.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
a_url:
type: url
description: |
This is a test-only metric.
Just setting some Urls.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
no_lint:
- COMMON_PREFIX
telemetry_mirror: TELEMETRY_TEST_MIRROR_FOR_URL
test_only.jog:
a_counter:
type: counter
description: |
This is a test-only metric.
Just counting things.
Tied closely to test_jog_name_collision.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1
an_event:
type: event
extra_keys:
extra1:
type: string
description: "Some extra data"
extra2:
type: string
description: "Some extra data again"
description: |
This is a test-only metric.
Just recording some events.
Tied closely to test_jog_name_collision.
bugs:
data_reviews:
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- store1