blob: b9cadbc8ac0bf96e3797f7f29b868f70a07d671d [file] [log] [blame]
# Copyright 2020 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 EventLogger tests.
# It is compiled into cobalt1.1_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: OCCURRENCE
metric_dimensions:
- event_codes:
0: SettingA
1: SettingB
2: SettingC
reports:
- report_name: "SettingsChanged_UniqueDeviceHistograms"
id: 1
report_type: UNIQUE_DEVICE_HISTOGRAMS
- report_name: "SettingsChanged_UniqueDeviceHistograms_Two"
id: 2
report_type: UNIQUE_DEVICE_HISTOGRAMS
- id: 2
metric_name: "StreamingTime"
metric_type: INTEGER
metric_semantics: [LATENCY]
metric_units: SECONDS
metric_dimensions:
- event_codes:
0: StreamTypeA
1: StreamTypeB
2: StreamTypeC
reports:
- report_name: "StreamingTime_Aggregation"
id: 1
report_type: FLEETWIDE_MEANS
- report_name: "StreamingTime_Aggregation_Two"
id: 2
report_type: FLEETWIDE_MEANS
- id: 3
metric_name: "FileSystemWriteTimes"
metric_type: INTEGER_HISTOGRAM
metric_semantics: [USAGE_COUNTING]
metric_dimensions:
- event_codes:
47: CODE
int_buckets:
linear:
floor: 0
num_buckets: 10
step_size: 1
reports:
- report_name: "FileSystemWriteTimes_Histogram"
id: 1
report_type: FLEETWIDE_HISTOGRAMS
int_buckets:
linear:
floor: 0
num_buckets: 120
step_size: 1000
- report_name: "FileSystemWriteTimes_Histogram_Two"
id: 2
report_type: FLEETWIDE_HISTOGRAMS
int_buckets:
linear:
floor: 0
num_buckets: 120
step_size: 1000
- id: 4
metric_name: "Component"
metric_type: STRING
metric_semantics: [USAGE_COUNTING]
# No metric dimensions defined.
string_candidate_file: application_names.txt
string_buffer_max: 30
reports:
- report_name: "Component_Histogram"
id: 1
report_type: STRING_COUNTS
- report_name: "Component_Histogram_Two"
id: 2
report_type: STRING_COUNTS