| # 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. |
| |
| ########################################################################## |
| # This file contains MetricDefinitions used in Logger tests. |
| # It is compiled into per_device_count_test_registry.h, which is included |
| # in testing_constants.h. |
| # |
| # When editing this file, also update testing_constants.h with any |
| # changes to report IDs or to local aggregation parameters. |
| ########################################################################## |
| |
| metric_definitions: |
| |
| - id: 1 |
| metric_name: "SettingsChanged" |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| - event_codes: |
| 0: SettingA |
| 1: SettingB |
| 2: SettingC |
| reports: |
| # Report ID: 2024497361 |
| - report_name: "SettingsChanged_PerDeviceCount" |
| report_type: PER_DEVICE_COUNT_STATS |
| window_size: |
| - 7 |
| - 30 |
| |
| - id: 2 |
| metric_name: "ConnectionFailures" |
| metric_type: EVENT_COUNT |
| metric_dimensions: |
| - event_codes: |
| 0: ErrorCode0 |
| 1: ErrorCode1 |
| 2: ErrorCode2 |
| reports: |
| # Report ID: 2973951499 |
| - report_name: "ConnectionFailures_GlobalCount" |
| report_type: EVENT_COMPONENT_OCCURRENCE_COUNT |
| # Report ID: 1059892875 |
| - report_name: "ConnectionFailures_PerDeviceCount" |
| report_type: PER_DEVICE_COUNT_STATS |
| window_size: |
| - 1 |