| # 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. |
| |
| metric_definitions: |
| |
| ##################################################################### |
| # load_from_flash |
| # |
| # Count of times we attempted to load properties from flash. This |
| # metric provides the highest-level view of the effectiveness of the |
| # flash_ts service. |
| # |
| # This will be reported once each time that flash_ts service starts. |
| # We expect that this will be once per boot. However, if the flash_ts |
| # service is terminated (due, e.g., to low-memory conditions), this |
| # metric could be reported multiple times for a single boot. |
| ##################################################################### |
| - id: 1 |
| metric_name: load_from_flash |
| metric_type: EVENT_OCCURRED |
| metric_dimensions: |
| - dimension: result |
| event_codes: |
| 0: Success |
| 1: SuccessWithWarnings |
| 2: Failure |
| max_event_code: 2 |
| reports: |
| ##################################################################### |
| # load_from_flash_counts |
| # |
| # Count of each of the types of load occurrences. |
| ##################################################################### |
| - report_name: load_from_flash_counts |
| id: 1 |
| report_type: SIMPLE_OCCURRENCE_COUNT |
| local_privacy_noise_level: NONE |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2020/12/10" |
| |
| ##################################################################### |
| # cache_read |
| # |
| # Count of times we attempted to read properties from Isolated |
| # Persistent Storage. This metric is intended to both: |
| # * quantify cache effectiveness, and |
| # * help debug cache problems |
| # |
| # This will be reported once each time that flash_ts service starts. |
| # We expect that this will be once per boot. However, if the flash_ts |
| # service is terminated (due, e.g., to low-memory conditions), this |
| # metric could be reported multiple times for a single boot. |
| ##################################################################### |
| - id: 2 |
| metric_name: cache_read |
| metric_type: EVENT_OCCURRED |
| metric_dimensions: |
| - dimension: result |
| event_codes: |
| 0: Success |
| 1: NotFound |
| 2: MiscIoError |
| 3: ParseFailure |
| max_event_code: 3 |
| reports: |
| ##################################################################### |
| # cache_read_counts |
| # |
| # Count of each of the types of cache_read occurrences. |
| ##################################################################### |
| - report_name: cache_read_counts |
| id: 1 |
| report_type: SIMPLE_OCCURRENCE_COUNT |
| local_privacy_noise_level: NONE |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2021/01/21" |
| |
| ##################################################################### |
| # cache_write |
| # |
| # Count of times we attempted to write properties to Isolated |
| # Persistent Storage. This metric is intended to help debug cache |
| # problems. |
| # |
| # Because the storage is persistent, we expect that this metric will |
| # be reported only once per device. However, if a) writing fails, |
| # b) the device suffers filesystem corruption, or c) the device is |
| # factory-reset, then the metric will be reported multiple times. |
| ##################################################################### |
| - id: 3 |
| metric_name: cache_write |
| metric_type: EVENT_OCCURRED |
| metric_dimensions: |
| - dimension: result |
| event_codes: |
| 0: Success |
| 1: IoError |
| max_event_code: 1 |
| reports: |
| ##################################################################### |
| # cache_write_counts |
| # |
| # Count of each of the types of cache_read occurrences. |
| ##################################################################### |
| - report_name: cache_write_counts |
| id: 1 |
| report_type: SIMPLE_OCCURRENCE_COUNT |
| local_privacy_noise_level: NONE |
| system_profile_field: [BOARD_NAME, PRODUCT_NAME, SYSTEM_VERSION, CHANNEL] |
| meta_data: |
| max_release_stage: GA |
| expiration_date: "2021/01/21" |