Commit 64b02ecd authored by tby's avatar tby Committed by Commit Bot

Export UMA protos with proto_export.py.

Change-Id: I88779743e8ac04ea0883a91fc9b61297c758e67f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1950375Reviewed-by: default avatarSteven Holte <holte@chromium.org>
Commit-Queue: Tony Yeoman <tby@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723640}
parent 7ed822dc
...@@ -24,6 +24,7 @@ _proto_files = [ ...@@ -24,6 +24,7 @@ _proto_files = [
"printer_event.proto", "printer_event.proto",
"reporting_info.proto", "reporting_info.proto",
"sampled_profile.proto", "sampled_profile.proto",
"structured_event.proto",
"system_profile.proto", "system_profile.proto",
"trace_log.proto", "trace_log.proto",
"translate_event.proto", "translate_event.proto",
......
Name: Metrics Protos Name: Metrics Protos
Short Name: metrics_proto Short Name: metrics_proto
URL: This is the canonical public repository URL: This is the canonical public repository
Version: 277734544 Version: 283899508
Date: 2019/10/31 UTC Date: 2019/12/05 UTC
License: BSD License: BSD
Security Critical: Yes Security Critical: Yes
......
...@@ -20,13 +20,14 @@ import "perf_data.proto"; ...@@ -20,13 +20,14 @@ import "perf_data.proto";
import "printer_event.proto"; import "printer_event.proto";
import "reporting_info.proto"; import "reporting_info.proto";
import "sampled_profile.proto"; import "sampled_profile.proto";
import "structured_event.proto";
import "system_profile.proto"; import "system_profile.proto";
import "trace_log.proto"; import "trace_log.proto";
import "translate_event.proto"; import "translate_event.proto";
import "user_action_event.proto"; import "user_action_event.proto";
import "user_demographics.proto"; import "user_demographics.proto";
// Next tag: 22 // Next tag: 23
message ChromeUserMetricsExtension { message ChromeUserMetricsExtension {
// The product (i.e. end user application) for a given UMA log. // The product (i.e. end user application) for a given UMA log.
enum Product { enum Product {
...@@ -81,6 +82,8 @@ message ChromeUserMetricsExtension { ...@@ -81,6 +82,8 @@ message ChromeUserMetricsExtension {
repeated PrinterEventProto printer_event = 16; repeated PrinterEventProto printer_event = 16;
repeated ChromeOSAppListLaunchEventProto chrome_os_app_list_launch_event = 20; repeated ChromeOSAppListLaunchEventProto chrome_os_app_list_launch_event = 20;
repeated StructuredEventProto structured_event = 22;
// Deprecated: use |sampled_profile| instead. // Deprecated: use |sampled_profile| instead.
repeated PerfDataProto perf_data = 8 [deprecated = true]; repeated PerfDataProto perf_data = 8 [deprecated = true];
......
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package metrics;
// One structured metrics event, containing several hashed and unhashed metrics
// related to a single event type, tied to a single pseudonymous user.
//
// Next tag: 4
message StructuredEventProto {
// A per-profile, per-client, per-event ID that is used only for structured
// metrics.
optional fixed64 profile_event_id = 1;
// The first 8 bytes of the MD5 hash of the event's name as a string. Each
// name is defined in src/tools/metrics/structured/structured.xml, and this
// will be the hash of one of those.
optional fixed64 event_name_hash = 2;
// All metric values for this event. Each metric has two properties defined in
// structured.xml that determine what is recorded.
//
// 1. Metric name. This is a string, and the first 8 bytes of its MD5 hash is
// recorded as name_hash.
//
// 2. Kind. Each metric can store two kinds of values.
//
// - int64. The client supplies an int64 value for the metric, and that
// value is recorded as-is in value_raw.
//
// - hashed-string. The client supplies an arbitrary string for the metric.
// The string itself is not recorded, instead, value_hmac records the
// first 8 bytes of:
//
// HMAC_SHA256(concat(string, metric_name), event_key)
//
// The event_key is a per-profile, per-client, per-event secret 32-byte
// key used only for signing hashed values for this event. Keys should
// never leave the device, and are rotated at most every 90 days.
message Metric {
optional fixed64 name_hash = 1;
oneof value {
fixed64 value_hmac = 2;
int64 value_int64 = 3;
}
}
repeated Metric metrics = 3;
}
...@@ -1070,6 +1070,7 @@ message SystemProfileProto { ...@@ -1070,6 +1070,7 @@ message SystemProfileProto {
CELLULAR = 23; CELLULAR = 23;
DEMO_MODE_RESOURCES = 24; DEMO_MODE_RESOURCES = 24;
ON_DEVICE_HEAD_SUGGEST = 25; ON_DEVICE_HEAD_SUGGEST = 25;
CROS_SMART_DIM = 26;
} }
// Information about what Chrome components are registered and at which // Information about what Chrome components are registered and at which
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment