aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/legacy_protobuf
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /library/cpp/monlib/encode/legacy_protobuf
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/encode/legacy_protobuf')
-rw-r--r--library/cpp/monlib/encode/legacy_protobuf/protos/metric_meta.proto94
1 files changed, 47 insertions, 47 deletions
diff --git a/library/cpp/monlib/encode/legacy_protobuf/protos/metric_meta.proto b/library/cpp/monlib/encode/legacy_protobuf/protos/metric_meta.proto
index fd23eb372b..275903bd9e 100644
--- a/library/cpp/monlib/encode/legacy_protobuf/protos/metric_meta.proto
+++ b/library/cpp/monlib/encode/legacy_protobuf/protos/metric_meta.proto
@@ -1,37 +1,37 @@
import "google/protobuf/descriptor.proto";
-
+
package NMonProto;
-
+
option java_package = "ru.yandex.monlib.proto";
option java_outer_classname = "MetricMetaProto";
-
+
enum EMetricType {
GAUGE = 1;
RATE = 2;
-}
-
+}
+
enum EMemOnly {
- DEFAULT = 0;
- STORE = 1;
- MEM_ONLY = 2;
-}
-
+ DEFAULT = 0;
+ STORE = 1;
+ MEM_ONLY = 2;
+}
+
message TMetricMeta {
optional EMetricType Type = 1;
- optional bool Path = 2;
- optional string Keys = 3;
- optional bool MemOnly = 4;
- optional bool IgnorePath = 5;
+ optional bool Path = 2;
+ optional string Keys = 3;
+ optional bool MemOnly = 4;
+ optional bool IgnorePath = 5;
optional string CustomPath = 6;
-}
-
-enum THistogramBase {
- MICROSECOND = 3;
- MILLISECOND = 6;
- SECOND = 9;
- MINUTE = 12;
- HOUR = 15;
-}
+}
+
+enum THistogramBase {
+ MICROSECOND = 3;
+ MILLISECOND = 6;
+ SECOND = 9;
+ MINUTE = 12;
+ HOUR = 15;
+}
message THistogramEntry {
optional uint64 Multiplier = 1;
@@ -40,34 +40,34 @@ message THistogramEntry {
message THistogram {
optional THistogramBase Base = 1;
- optional string BaseStr = 2;
+ optional string BaseStr = 2;
repeated THistogramEntry Entries = 5;
}
-
-// field of this type is recognized by Solomon
+
+// field of this type is recognized by Solomon
message TExtraLabelMetrics {
- optional string labelName = 1;
-
- message TValue {
- optional string labelValue = 1;
- // used only if != 0
- optional uint64 labelValueUint = 21;
-
- optional uint64 longValue = 2;
- optional double doubleValue = 3;
- optional THistogram histogramValue = 4;
-
+ optional string labelName = 1;
+
+ message TValue {
+ optional string labelValue = 1;
+ // used only if != 0
+ optional uint64 labelValueUint = 21;
+
+ optional uint64 longValue = 2;
+ optional double doubleValue = 3;
+ optional THistogram histogramValue = 4;
+
optional EMetricType type = 7;
optional EMemOnly memOnly = 8;
- optional bool dropHost = 9;
-
+ optional bool dropHost = 9;
+
repeated TExtraLabelMetrics children = 17;
- }
-
- repeated TValue values = 2;
-}
-
-extend google.protobuf.FieldOptions {
+ }
+
+ repeated TValue values = 2;
+}
+
+extend google.protobuf.FieldOptions {
optional TMetricMeta Metric = 1719;
-}
-
+}
+