# 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/.
---

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

migration:
  migration_versions:
    type: labeled_string
    description: >
      Versions of the migrations which were executed.
    labels:
      - history
      - bookmarks
      - logins
      - open_tabs
      - fxa
      - gecko
      - settings
      - telemetry_identifiers
      - addons
      - search
      - pinned_sites
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.telemetry_identifiers:
  fennec_client_id:
    type: uuid
    description: >
      Records clientID of the migrated Fennec profile.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  fennec_profile_creation_date:
    type: datetime
    time_unit: millisecond
    description: >
      Records when the migrated Fennec profile was created.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.history:
  migrated:
    type: labeled_counter
    description: >
      Counters describing how history migration went;
      should add-up to 'migration.history.detected'.
    labels:
      - succeeded
      - failed
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  detected:
    type: counter
    description: >
      Total number of detected history items prior to a migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  duration:
    type: timespan
    time_unit: millisecond
    description: >
      Duration of the history migration (Rust operations).
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.bookmarks:
  migrated:
    type: labeled_counter
    description: >
      Counters describing how bookmark migration went;
      should add-up to 'migration.bookmarks.detected'.
    labels:
      - succeeded
      - failed
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  detected:
    type: counter
    description: >
      Total number of detected bookmarks prior to a migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  duration:
    type: timespan
    time_unit: millisecond
    description: >
      Duration of the bookmarks migration (Rust operations).
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.open_tabs:
  detected:
    type: counter
    description: >
      Number of detected open tabs.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  migrated:
    type: counter
    description: >
      Number of migrated open tabs.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.fxa:
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  bad_auth_state:
    type: string
    description: >
      If we couldn't migrate due to a bad auth state, what was it?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  has_custom_token_server:
    type: boolean
    description: >
      Is custom token server configured?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5359
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5582#issuecomment-574673110
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  has_custom_idp_server:
    type: boolean
    description: >
      Is custom idp server configured?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5359
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5582#issuecomment-574673110
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  unsupported_account_version:
    type: string
    description: >
      What is the detected unsupported account version?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5359
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5582#issuecomment-574673110
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  unsupported_pickle_version:
    type: string
    description: >
      What is the detected unsupported pickle version?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5359
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5582#issuecomment-574673110
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  unsupported_state_version:
    type: string
    description: >
      What is the detected unsupported state version?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5359
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5582#issuecomment-574673110
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.gecko:
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5653
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5655#pullrequestreview-346359792
    data_sensitivity:
      - technical
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.logins:
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  unsupported_db_version:
    type: counter
    description: >
      If we couldn't migrate due to an unsupported db version, what was it?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  detected:
    type: counter
    description: >
      How many logins were detected?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_counts:
    type: labeled_counter
    labels:
      - process
      - import
    description: >
      How many logins failed to be migrated, and in which ways?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.settings:
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  telemetry_enabled:
    type: boolean
    description: >
      Is telemetry enabled after this migration?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.addons:
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failed_addons:
    type: counter
    description: >
      How many addons failed to migrate?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  migrated_addons:
    type: counter
    description: >
      How many addons were migrated?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5888
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5483#issuecomment-573971458
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.search:
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5818
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5819#pullrequestreview-353890362
    data_sensitivity:
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5818
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5819#pullrequestreview-353890362
    data_sensitivity:
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5818
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/5819#pullrequestreview-353890362
    data_sensitivity:
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping

migration.pinned_sites:
  any_failures:
    type: boolean
    description: >
      Did this migration encounter any failures (exceptions)?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5126
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  failure_reason:
    type: counter
    description: >
      Why this migration failed. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5126
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  success_reason:
    type: counter
    description: >
      Why this migration succeeded. See codes in TelemetryHelpers.kt
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/5126
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  detected_pinned_sites:
    type: counter
    description: >
      How many pinned sites were detected?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5126
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  migrated_pinned_sites:
    type: counter
    description: >
      How many pinned sites were migrated?
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5126
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
  total_duration:
    type: timespan
    time_unit: millisecond
    description: >
      Total duration of this migration.
    send_in_pings:
      - migration
    bugs:
      - https://github.com/mozilla-mobile/android-components/issues/6196
    data_reviews:
      - https://github.com/mozilla-mobile/android-components/pull/6214#pullrequestreview-372237195
    data_sensitivity:
      - technical
      - interaction
    notification_emails:
      - fenix-core@mozilla.com
    expires: 2021-11-01
    lifetime: ping
