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

Side by Side Diff: infra_libs/ts_mon/protos/metrics.proto

Issue 2213143002: Add infra_libs as a bootstrap dependency. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Removed the ugly import hack Created 4 years, 4 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 syntax = "proto2";
6
7 package ts_mon.proto;
8
9 import "acquisition_network_device.proto";
10 import "acquisition_task.proto";
11
12 message MetricsCollection {
13 repeated MetricsData data = 1;
14
15 optional uint64 start_timestamp_us = 2;
16 optional string collection_point_id = 3;
17 }
18
19 message MetricsField {
20 optional string name = 1;
21
22 optional FieldType type = 3 [default = STRING];
23 enum FieldType {
24 STRING = 1;
25 INT = 2;
26 BOOL = 3;
27 };
28
29 optional string string_value = 4;
30 optional int64 int_value = 5;
31 optional bool bool_value = 6;
32 }
33
34 message PrecomputedDistribution {
35 enum SpecType {
36
37 CANONICAL_POWERS_OF_2 = 1;
38 CANONICAL_POWERS_OF_10_P_0_2 = 2;
39 CANONICAL_POWERS_OF_10 = 3;
40 CUSTOM_PARAMETERIZED = 20;
41 CUSTOM_BOUNDED = 21;
42 }
43
44 optional SpecType spec_type = 1;
45 optional double width = 2 [default = 10.0];
46 optional double growth_factor = 3 [default = 0.0];
47 optional int32 num_buckets = 4 [default = 10];
48 repeated double lower_bounds = 5;
49 optional bool is_cumulative = 6 [default = false];
50 repeated sint64 bucket = 7;
51 optional sint64 underflow = 8;
52 optional sint64 overflow = 9;
53 optional double mean = 10;
54 optional double sum_of_squared_deviation = 11;
55 }
56
57 message MetricsData {
58 required string name = 1;
59 optional string metric_name_prefix = 2;
60
61 optional ts_mon.proto.NetworkDevice network_device = 11;
62 optional ts_mon.proto.Task task = 12;
63
64 repeated MetricsField fields = 20;
65
66 optional int64 counter = 30;
67 optional int64 gauge = 32;
68 optional double noncumulative_double_value = 34;
69 optional PrecomputedDistribution distribution = 35;
70 optional string string_value = 36;
71 optional bool boolean_value = 37;
72 optional double cumulative_double_value = 38;
73
74 optional uint64 start_timestamp_us = 40;
75
76 enum Units {
77 UNKNOWN_UNITS = 0;
78 SECONDS = 1;
79 MILLISECONDS = 2;
80 MICROSECONDS = 3;
81 NANOSECONDS = 4;
82
83 BITS = 21;
84 BYTES = 22;
85
86 /** 1000 bytes (not 1024). */
87 KILOBYTES = 31;
88 /** 1e6 (1,000,000) bytes. */
89 MEGABYTES = 32;
90 /** 1e9 (1,000,000,000) bytes. */
91 GIGABYTES = 33;
92
93 /** 1024 bytes. */
94 KIBIBYTES = 41;
95 /** 1024^2 (1,048,576) bytes. */
96 MEBIBYTES = 42;
97 /** 1024^3 (1,073,741,824) bytes. */
98 GIBIBYTES = 43;
99
100 /** Extended Units */
101 AMPS = 60;
102 MILLIAMPS = 61;
103 DEGREES_CELSIUS = 62;
104 }
105 optional Units units = 41;
106
107 optional string description = 43;
108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698