| # 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: software_delivery |
| ################################################################################ |
| |
| metric_definitions: |
| |
| ################################################################################ |
| # System Up To Date |
| # |
| # Used to log the fact that an update check was performed, but the system is |
| # already running the latest version. |
| ################################################################################ |
| - id: 1 |
| metric_name: system_up_to_date |
| # The count will always be one. |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| # What initiated the update check? |
| - dimension: initiator |
| event_codes: |
| 0: AutomaticUpdateCheck |
| 1: UserInitiatedCheck |
| # When did the update check occur? |
| - dimension: hour_of_day |
| max_event_code: 23 |
| reports: |
| - report_name: system_up_to_date_counts |
| id: 3897546620 # legacy long report_id |
| report_type: NUMERIC_AGGREGATION |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL] |
| - report_name: system_up_to_date_per_device_count |
| id: 2703326378 # legacy long report_id |
| report_type: PER_DEVICE_NUMERIC_STATS |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL] |
| window_size: |
| - 1 |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/04/15" |
| |
| ################################################################################ |
| # OTA Start |
| # |
| # Used to log the fact that an update is available and is being applied. |
| ################################################################################ |
| - id: 2 |
| metric_name: ota_start |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| # What initiated the update check? |
| - dimension: initiator |
| event_codes: |
| 0: AutomaticUpdateCheck |
| 1: UserInitiatedCheck |
| # When did the update check occur? |
| - dimension: hour_of_day |
| max_event_code: 23 |
| reports: |
| - report_name: ota_start_counts |
| id: 276244619 # legacy long report_id |
| report_type: NUMERIC_AGGREGATION |
| # The |component| string is used to capture the target build version |
| candidate_file: fuchsia/software_delivery/build_versions.txt |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/04/15" |
| |
| ################################################################################ |
| # OTA Result Attempts |
| # |
| # Used to log OTA attempt number, at the point that update was applied and is |
| # ready to be booted, or an error was encountered during the update attempt |
| ################################################################################ |
| - id: 3 |
| metric_name: ota_result_attempts |
| # The value of the count will be the attempt number. |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| # What initiated the update check? |
| - dimension: initiator |
| event_codes: |
| 0: AutomaticUpdateCheck |
| 1: UserInitiatedCheck |
| # At which phase did the update terminate? |
| - dimension: phase |
| event_codes: &ota_result_termination_phases |
| 1: TUFUpdate |
| 2: PackageDownload |
| 3: ImageWrite |
| 4: SuccessPendingReboot |
| 5: Success |
| - dimension: status_code |
| event_codes: &ota_result_status_codes |
| 0: success |
| 1: error |
| 2: error_storage |
| 3: error_storage_out_of_space |
| 4: error_networking |
| reports: |
| - report_name: ota_result_attempts_histogram |
| id: 1235984927 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| # The |component| string is used to capture the target build version |
| candidate_file: fuchsia/software_delivery/build_versions.txt |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION] |
| int_buckets: |
| linear: |
| floor: 0 |
| num_buckets: 100 |
| step_size: 1 |
| - report_name: ota_result_attempts |
| id: 1004304452 # legacy long report_id |
| report_type: NUMERIC_AGGREGATION |
| # The |component| string is used to capture the target build version |
| candidate_file: fuchsia/software_delivery/build_versions.txt |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/04/15" |
| |
| |
| ################################################################################ |
| # OTA Result Duration |
| # |
| # Used to log the duration of an OTA at the point that an update was |
| # applied and is ready to be booted, or an error was encountered during the |
| # update attempt |
| ################################################################################ |
| - id: 4 |
| metric_name: ota_result_duration |
| # How long the update took from start to finish (not counting any necessary |
| # reboot), in milliseconds |
| metric_type: ELAPSED_TIME |
| metric_dimensions: |
| # What initiated the update check? |
| - dimension: initiator |
| event_codes: |
| 0: AutomaticUpdateCheck |
| 1: UserInitiatedCheck |
| # At which phase did the update terminate? |
| - dimension: phase |
| event_codes: *ota_result_termination_phases |
| - dimension: status_code |
| event_codes: *ota_result_status_codes |
| reports: |
| - report_name: ota_result_duration_histogram |
| id: 845188937 # legacy long report_id |
| report_type: INT_RANGE_HISTOGRAM |
| # The |component| string is used to capture the target build version |
| candidate_file: fuchsia/software_delivery/build_versions.txt |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION] |
| int_buckets: |
| linear: |
| floor: 0 |
| num_buckets: 100 |
| step_size: 500 |
| - report_name: ota_result_duration__stats |
| id: 3514494109 # legacy long report_id |
| report_type: NUMERIC_AGGREGATION |
| # The |component| string is used to capture the target build version |
| candidate_file: fuchsia/software_delivery/build_versions.txt |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/04/15" |
| |
| |
| ################################################################################ |
| # OTA Result Free-Space Delta |
| # |
| # Used to log the delta between the free space after the OTA and the free space |
| # before the OTA, at the point that update was applied and is ready to be |
| # booted, or an error was encountered during the update attempt |
| ################################################################################ |
| - id: 5 |
| metric_name: ota_result_free_space_delta |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| # What initiated the update check? |
| - dimension: initiator |
| event_codes: |
| 0: AutomaticUpdateCheck |
| 1: UserInitiatedCheck |
| # At which phase did the update terminate? |
| - dimension: phase |
| event_codes: *ota_result_termination_phases |
| - dimension: status_code |
| event_codes: *ota_result_status_codes |
| reports: |
| - report_name: ota_result_free_space_delta_stats |
| id: 4160859516 # legacy long report_id |
| report_type: NUMERIC_AGGREGATION |
| # The |component| string is used to capture the target build version |
| candidate_file: fuchsia/software_delivery/build_versions.txt |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/04/15" |