xref: /aosp_15_r20/external/cronet/third_party/metrics_proto/ukm/entry.proto (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1// Copyright 2017 The Chromium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5syntax = "proto2";
6
7option optimize_for = LITE_RUNTIME;
8option java_package = "org.chromium.components.metrics";
9
10package ukm;
11
12// Next tag: 6
13message Entry {
14  // Unique identifier for an Event. This is used to provide hierarchical
15  // structure for Events.
16  optional int32 DEPRECATED_id = 1 [deprecated = true];
17
18  // Parent id, which is associated with an id for another Event. This is set
19  // only if the Event has another Event which can be considered a parent.
20  // This is to provide hierarchies for Events.
21  optional int32 DEPRECATED_parent_id = 2 [deprecated = true];
22
23  // The id of the Source this Event is associated with.
24  optional int64 source_id = 3;
25
26  // Type of the Event. This is a hash of the name (as a string).
27  optional fixed64 event_hash = 4;
28
29  // For each Event, we have a list of possible metrics included. It's possible
30  // for a single metric name to be repeated. There is also no guarantee that
31  // all metrics that are available for a given event will be provided for a
32  // single Entry.
33  message Metric {
34    optional fixed64 metric_hash = 1;
35    optional int64 value = 2;
36  }
37  repeated Metric metrics = 5;
38}
39