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