OLD | NEW |
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 } |
OLD | NEW |