| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 // Copied from https://chromium.googlesource.com/infra/infra/+/master/infra_libs
/ts_mon/protos/ | 5 // Copied from https://chromium.googlesource.com/infra/infra/+/master/infra_libs
/ts_mon/protos/ |
| 6 | 6 |
| 7 syntax = "proto2"; | 7 syntax = "proto3"; |
| 8 | 8 |
| 9 package ts_mon.proto; | 9 package ts_mon.proto; |
| 10 | 10 |
| 11 import "acquisition_network_device.proto"; | 11 import "acquisition_network_device.proto"; |
| 12 import "acquisition_task.proto"; | 12 import "acquisition_task.proto"; |
| 13 | 13 |
| 14 message MetricsCollection { | 14 message MetricsCollection { |
| 15 repeated MetricsData data = 1; | 15 repeated MetricsData data = 1; |
| 16 | 16 |
| 17 optional uint64 start_timestamp_us = 2; | 17 uint64 start_timestamp_us = 2; |
| 18 optional string collection_point_id = 3; | 18 string collection_point_id = 3; |
| 19 } | 19 } |
| 20 | 20 |
| 21 message MetricsField { | 21 message MetricsField { |
| 22 optional string name = 1; | 22 string name = 1; |
| 23 | 23 |
| 24 optional FieldType type = 3 [default = STRING]; | 24 FieldType type = 3; |
| 25 enum FieldType { | 25 enum FieldType { |
| 26 UNKNOWN = 0; |
| 26 STRING = 1; | 27 STRING = 1; |
| 27 INT = 2; | 28 INT = 2; |
| 28 BOOL = 3; | 29 BOOL = 3; |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 optional string string_value = 4; | 32 string string_value = 4; |
| 32 optional int64 int_value = 5; | 33 int64 int_value = 5; |
| 33 optional bool bool_value = 6; | 34 bool bool_value = 6; |
| 34 } | 35 } |
| 35 | 36 |
| 36 message PrecomputedDistribution { | 37 message PrecomputedDistribution { |
| 37 enum SpecType { | 38 enum SpecType { |
| 38 | 39 UNKNOWN = 0; |
| 39 CANONICAL_POWERS_OF_2 = 1; | 40 CANONICAL_POWERS_OF_2 = 1; |
| 40 CANONICAL_POWERS_OF_10_P_0_2 = 2; | 41 CANONICAL_POWERS_OF_10_P_0_2 = 2; |
| 41 CANONICAL_POWERS_OF_10 = 3; | 42 CANONICAL_POWERS_OF_10 = 3; |
| 42 CUSTOM_PARAMETERIZED = 20; | 43 CUSTOM_PARAMETERIZED = 20; |
| 43 CUSTOM_BOUNDED = 21; | 44 CUSTOM_BOUNDED = 21; |
| 44 } | 45 } |
| 45 | 46 |
| 46 optional SpecType spec_type = 1; | 47 SpecType spec_type = 1; |
| 47 optional double width = 2 [default = 10.0]; | 48 double width = 2; |
| 48 optional double growth_factor = 3 [default = 0.0]; | 49 double growth_factor = 3; |
| 49 optional int32 num_buckets = 4 [default = 10]; | 50 int32 num_buckets = 4; |
| 50 repeated double lower_bounds = 5; | 51 repeated double lower_bounds = 5; |
| 51 optional bool is_cumulative = 6 [default = false]; | 52 bool is_cumulative = 6; |
| 52 repeated sint64 bucket = 7; | 53 repeated sint64 bucket = 7; |
| 53 optional sint64 underflow = 8; | 54 sint64 underflow = 8; |
| 54 optional sint64 overflow = 9; | 55 sint64 overflow = 9; |
| 55 optional double mean = 10; | 56 double mean = 10; |
| 56 optional double sum_of_squared_deviation = 11; | 57 double sum_of_squared_deviation = 11; |
| 57 } | 58 } |
| 58 | 59 |
| 59 message MetricsData { | 60 message MetricsData { |
| 60 required string name = 1; | 61 string name = 1; // Required. |
| 61 optional string metric_name_prefix = 2; | 62 string metric_name_prefix = 2; |
| 62 | 63 |
| 63 optional ts_mon.proto.NetworkDevice network_device = 11; | 64 ts_mon.proto.NetworkDevice network_device = 11; |
| 64 optional ts_mon.proto.Task task = 12; | 65 ts_mon.proto.Task task = 12; |
| 65 | 66 |
| 66 repeated MetricsField fields = 20; | 67 repeated MetricsField fields = 20; |
| 67 | 68 |
| 68 optional int64 counter = 30; | 69 int64 counter = 30; |
| 69 optional int64 gauge = 32; | 70 int64 gauge = 32; |
| 70 optional double noncumulative_double_value = 34; | 71 double noncumulative_double_value = 34; |
| 71 optional PrecomputedDistribution distribution = 35; | 72 PrecomputedDistribution distribution = 35; |
| 72 optional string string_value = 36; | 73 string string_value = 36; |
| 73 optional bool boolean_value = 37; | 74 bool boolean_value = 37; |
| 74 optional double cumulative_double_value = 38; | 75 double cumulative_double_value = 38; |
| 75 | 76 |
| 76 optional uint64 start_timestamp_us = 40; | 77 uint64 start_timestamp_us = 40; |
| 77 | 78 |
| 78 enum Units { | 79 enum Units { |
| 79 UNKNOWN_UNITS = 0; | 80 UNKNOWN_UNITS = 0; |
| 80 SECONDS = 1; | 81 SECONDS = 1; |
| 81 MILLISECONDS = 2; | 82 MILLISECONDS = 2; |
| 82 MICROSECONDS = 3; | 83 MICROSECONDS = 3; |
| 83 NANOSECONDS = 4; | 84 NANOSECONDS = 4; |
| 84 | 85 |
| 85 BITS = 21; | 86 BITS = 21; |
| 86 BYTES = 22; | 87 BYTES = 22; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 97 /** 1024^2 (1,048,576) bytes. */ | 98 /** 1024^2 (1,048,576) bytes. */ |
| 98 MEBIBYTES = 42; | 99 MEBIBYTES = 42; |
| 99 /** 1024^3 (1,073,741,824) bytes. */ | 100 /** 1024^3 (1,073,741,824) bytes. */ |
| 100 GIBIBYTES = 43; | 101 GIBIBYTES = 43; |
| 101 | 102 |
| 102 /** Extended Units */ | 103 /** Extended Units */ |
| 103 AMPS = 60; | 104 AMPS = 60; |
| 104 MILLIAMPS = 61; | 105 MILLIAMPS = 61; |
| 105 DEGREES_CELSIUS = 62; | 106 DEGREES_CELSIUS = 62; |
| 106 } | 107 } |
| 107 optional Units units = 41; | 108 Units units = 41; |
| 108 | 109 |
| 109 optional string description = 43; | 110 string description = 43; |
| 110 } | 111 } |
| OLD | NEW |