| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| ################################################################################ |
| # Cobalt Project: fuchsia_ledger |
| ################################################################################ |
| |
| metric_definitions: |
| |
| ##################################################################### |
| # Rare Event Occurrence |
| # |
| # Occurrences of several events that are expected to occur rarely if ever. |
| ##################################################################### |
| - id: 2 |
| metric_name: rare_event_occurrence |
| metric_type: EVENT_OCCURRED |
| metric_dimensions: |
| - dimension: event |
| event_codes: |
| 0: LedgerStartup |
| 1: CommitsReceivedOutOfOrder |
| 2: CommitsMerged |
| 3: MergedCommitsMerged |
| 4: CommitsRecievedOutOfOrderNotRecovered |
| 5: LedgerLevelDBStateCorrupted |
| max_event_code: 127 |
| reports: |
| - report_name: rare_event_occurrence_counts |
| id: 2870249031 # legacy long report_id |
| report_type: SIMPLE_OCCURRENCE_COUNT |
| local_privacy_noise_level: NONE |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/04/12" |
| |
| |
| ############################################################################### |
| # Firebase authentication failures |
| ################################################################################ |
| - id: 4 |
| metric_name: firebase_authentication_failures |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| - dimension: failure_type |
| # The type of authentication failure |
| # From Status in //sdk/fidl/fuchsia.auth/token_manager.fidl |
| event_codes: |
| 1: AUTH_PROVIDER_SERVICE_UNAVAILABLE |
| 2: AUTH_PROVIDER_SERVER_ERROR |
| 3: INTERNAL_ERROR |
| 4: INVALID_AUTH_CONTEXT |
| 5: INVALID_REQUEST |
| 6: USER_NOT_FOUND |
| 7: IO_ERROR |
| 8: UNKNOWN_ERROR |
| 9: REAUTH_REQUIRED |
| 10: USER_CANCELLED |
| 11: NETWORK_ERROR |
| reports: |
| - report_name: firebase_authentication_failures_fleetwide_counts |
| id: 2338081492 # legacy long report_id |
| report_type: EVENT_COMPONENT_OCCURRENCE_COUNT |
| # List of all values that might be used for the |component| string |
| # when logging this metric. In the Ledger code this value is called |
| # |cobalt_client_name|. |
| candidate_list: |
| - "cloud_provider_firestore" |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/04/12" |