Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: components/metrics/proto/ukm/entry.proto

Issue 2893943004: Refactor UKM interface for mojo-ification (Closed)
Patch Set: Fixed contextualsearch Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 package ukm; 7 package ukm;
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 10
11 // Next tag: 6 11 // Next tag: 6
12 message Entry { 12 message Entry {
13 // Unique identifier for an Event. This is used to provide hierarchical 13 // Unique identifier for an Event. This is used to provide hierarchical
14 // structure for Events. 14 // structure for Events.
15 optional int32 id = 1; 15 optional int32 id = 1;
16 16
17 // Parent id, which is associated with an id for another Event. This is set 17 // Parent id, which is associated with an id for another Event. This is set
18 // only if the Event has another Event which can be considered a parent. 18 // only if the Event has another Event which can be considered a parent.
19 // This is to provide hierarchies for Events. 19 // This is to provide hierarchies for Events.
20 optional int32 parent_id = 2; 20 optional int32 parent_id = 2;
21 21
22 // The id of the Source this Event is associated with. 22 // The id of the Source this Event is associated with.
23 optional int32 source_id = 3; 23 optional int64 source_id = 3;
24 24
25 // Type of the Event. This is a hash of the name (as a string). 25 // Type of the Event. This is a hash of the name (as a string).
26 optional fixed64 event_hash = 4; 26 optional fixed64 event_hash = 4;
27 27
28 // For each Event, we have a list of possible metrics included. It's possible 28 // For each Event, we have a list of possible metrics included. It's possible
29 // for a single metric name to be repeated. There is also no guarentee that 29 // for a single metric name to be repeated. There is also no guarentee that
30 // all metrics that are available for a given event will be provided for a 30 // all metrics that are available for a given event will be provided for a
31 // single Entry. 31 // single Entry.
32 message Metric { 32 message Metric {
33 optional fixed64 metric_hash = 1; 33 optional fixed64 metric_hash = 1;
34 optional int64 value = 2; 34 optional int64 value = 2;
35 } 35 }
36 repeated Metric metrics = 5; 36 repeated Metric metrics = 5;
37 } 37 }
OLDNEW
« no previous file with comments | « components/autofill/core/browser/test_autofill_client.cc ('k') | components/metrics/proto/ukm/source.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698