blob: dae8befb6dd4ca71018d07dc943816fda8c89d0e [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_migration_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: event_occurred_old
metric_type: EVENT_OCCURRED
replacement_metric_id: 101
metric_dimensions: &dimensions
- dimension: color
event_codes:
0: Red
1: Green
2: Chartreuse
max_event_code: 7
meta_data: &meta_data
max_release_stage: GA
expiration_date: "2021/11/01"
- id: 101
metric_name: event_occured_new
metric_type: OCCURRENCE
metric_semantics: [USAGE_COUNTING]
metric_dimensions: *dimensions
reports:
- report_name: event_occurred_new_7_day_actives
id: 101
report_type: UNIQUE_DEVICE_COUNTS
privacy_level: NO_ADDED_PRIVACY
local_aggregation_procedure: AT_LEAST_ONCE
local_aggregation_period: WINDOW_7_DAYS
system_profile_selection: SELECT_LAST
meta_data: *meta_data
- id: 2
metric_name: event_count
metric_type: EVENT_COUNT
replacement_metric_id: 102
metric_dimensions: *dimensions
meta_data: *meta_data
- id: 102
metric_name: event_count_new
metric_type: OCCURRENCE
metric_semantics: [USAGE_COUNTING]
metric_dimensions: *dimensions
reports:
- report_name: event_count_new_numeric_stats
id: 102
report_type: HOURLY_VALUE_NUMERIC_STATS
privacy_level: NO_ADDED_PRIVACY
meta_data: *meta_data
- id: 8
metric_name: bytes_uploaded
metric_type: EVENT_COUNT
replacement_metric_id: 108
metric_dimensions: *dimensions
meta_data: *meta_data
- id: 108
metric_name: bytes_uploaded_new
metric_type: INTEGER
metric_units: BYTES
metric_semantics: [NETWORK_COMMUNICATION, DATA_SIZE]
metric_dimensions: *dimensions
reports:
- report_name: numeric_stats
id: 108
local_aggregation_procedure: MAX_PROCEDURE
report_type: HOURLY_VALUE_NUMERIC_STATS
privacy_level: NO_ADDED_PRIVACY
meta_data: *meta_data
- id: 3
metric_name: event_component_count
metric_type: EVENT_COUNT
replacement_metric_id: 103
metric_dimensions: *dimensions
meta_data: *meta_data
- id: 103
metric_name: event_component_count_new
metric_type: STRING
string_candidate_file: file
metric_semantics: [USAGE_COUNTING]
metric_dimensions: *dimensions
reports:
- report_name: string_counst
id: 103
report_type: STRING_COUNTS
privacy_level: NO_ADDED_PRIVACY
string_buffer_max: 5
meta_data: *meta_data
- id: 4
metric_name: elapsed_time
metric_type: ELAPSED_TIME
replacement_metric_id: 104
metric_dimensions: *dimensions
meta_data: *meta_data
- id: 104
metric_name: new_elapsed_time
metric_type: INTEGER
metric_semantics: [LATENCY]
metric_units: MICROSECONDS
metric_dimensions: *dimensions
reports:
- id: 104
report_name: numeric_stats
report_type: UNIQUE_DEVICE_NUMERIC_STATS
privacy_level: NO_ADDED_PRIVACY
local_aggregation_procedure: MAX_PROCEDURE
local_aggregation_period: WINDOW_7_DAYS
meta_data: *meta_data
- id: 5
metric_name: frame_rate
metric_type: FRAME_RATE
replacement_metric_id: 105
metric_dimensions: *dimensions
meta_data: *meta_data
- id: 105
metric_name: new_frame_rate
metric_type: INTEGER
metric_semantics: [FRAME_RENDERING]
metric_units: SECONDS
metric_dimensions: *dimensions
reports:
- id: 105
report_name: numeric_stats
report_type: UNIQUE_DEVICE_NUMERIC_STATS
privacy_level: NO_ADDED_PRIVACY
local_aggregation_procedure: MAX_PROCEDURE
local_aggregation_period: WINDOW_7_DAYS
meta_data: *meta_data
- id: 6
metric_name: memory_usage
metric_type: MEMORY_USAGE
replacement_metric_id: 106
metric_dimensions: *dimensions
meta_data: *meta_data
- id: 106
metric_name: new_memory_usage
metric_type: INTEGER
metric_semantics: [MEMORY_USAGE]
metric_units: KIBIBYTES
metric_dimensions: *dimensions
reports:
- id: 106
report_name: numeric_stats
report_type: UNIQUE_DEVICE_NUMERIC_STATS
privacy_level: NO_ADDED_PRIVACY
local_aggregation_procedure: MAX_PROCEDURE
local_aggregation_period: WINDOW_7_DAYS
meta_data: *meta_data
- id: 7
metric_name: int_histogram
metric_type: INT_HISTOGRAM
int_buckets:
linear:
floor: 0
num_buckets: 80
step_size: 1
replacement_metric_id: 107
metric_dimensions: *dimensions
meta_data: *meta_data
- id: 107
metric_name: integer_histogram
metric_type: INTEGER_HISTOGRAM
metric_semantics: [OUTSIDE_ENVIRONMENT]
metric_units_other: "CELSIUS"
metric_dimensions: *dimensions
int_buckets:
linear:
floor: 0
num_buckets: 80
step_size: 1
reports:
- id: 107
report_name: fleetwide
report_type: FLEETWIDE_HISTOGRAMS
privacy_level: NO_ADDED_PRIVACY
meta_data: *meta_data