aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/protobuf/protos
diff options
context:
space:
mode:
authorSergey Polovko <sergey@polovko.me>2022-02-10 16:47:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:03 +0300
commit2e714b5ebd40a1f4cc31c27f1ad6e49ca6d895f5 (patch)
treeb83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/monlib/encode/protobuf/protos
parent3e0b762a82514bac89c1dd6ea7211e381d8aa248 (diff)
downloadydb-2e714b5ebd40a1f4cc31c27f1ad6e49ca6d895f5.tar.gz
Restoring authorship annotation for Sergey Polovko <sergey@polovko.me>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/encode/protobuf/protos')
-rw-r--r--library/cpp/monlib/encode/protobuf/protos/samples.proto138
-rw-r--r--library/cpp/monlib/encode/protobuf/protos/ya.make16
2 files changed, 77 insertions, 77 deletions
diff --git a/library/cpp/monlib/encode/protobuf/protos/samples.proto b/library/cpp/monlib/encode/protobuf/protos/samples.proto
index d5f0c6403e..371f4181d2 100644
--- a/library/cpp/monlib/encode/protobuf/protos/samples.proto
+++ b/library/cpp/monlib/encode/protobuf/protos/samples.proto
@@ -1,33 +1,33 @@
-syntax = 'proto3';
-
-package NMonitoring.NProto;
-
-option java_package = "ru.yandex.solomon.protos";
-option java_multiple_files = true;
-option cc_enable_arenas = true;
-
-message TLabel {
- string Name = 1;
- string Value = 2;
-}
-
-enum EMetricType {
- UNKNOWN = 0;
- GAUGE = 1;
- IGAUGE = 2;
- COUNTER = 3;
- RATE = 4;
- HISTOGRAM = 5;
+syntax = 'proto3';
+
+package NMonitoring.NProto;
+
+option java_package = "ru.yandex.solomon.protos";
+option java_multiple_files = true;
+option cc_enable_arenas = true;
+
+message TLabel {
+ string Name = 1;
+ string Value = 2;
+}
+
+enum EMetricType {
+ UNKNOWN = 0;
+ GAUGE = 1;
+ IGAUGE = 2;
+ COUNTER = 3;
+ RATE = 4;
+ HISTOGRAM = 5;
HIST_RATE = 6;
DSUMMARY = 7;
LOGHISTOGRAM = 8;
-}
-
-message THistogram {
- repeated double Bounds = 1; // upper bounds of each bucket
- repeated uint64 Values = 2; // values stored in each bucket
-}
-
+}
+
+message THistogram {
+ repeated double Bounds = 1; // upper bounds of each bucket
+ repeated uint64 Values = 2; // values stored in each bucket
+}
+
message TLogHistogram {
double Base = 1;
uint64 ZerosCount = 2;
@@ -43,49 +43,49 @@ message TSummaryDouble {
uint64 Count = 5;
}
-// see TSingleSample
-message TPoint {
- uint64 Time = 1;
- oneof Value {
- sfixed64 Int64 = 2;
- fixed64 Uint64 = 3;
- double Float64 = 4;
- THistogram Histogram = 5;
+// see TSingleSample
+message TPoint {
+ uint64 Time = 1;
+ oneof Value {
+ sfixed64 Int64 = 2;
+ fixed64 Uint64 = 3;
+ double Float64 = 4;
+ THistogram Histogram = 5;
TSummaryDouble SummaryDouble = 6;
TLogHistogram LogHistogram = 7;
- }
-}
-
-message TSingleSample {
- repeated TLabel Labels = 1;
- EMetricType MetricType = 2;
-
- // inlined TPoint
- uint64 Time = 3;
- oneof Value {
- sfixed64 Int64 = 4;
- fixed64 Uint64 = 5;
- double Float64 = 6;
- THistogram Histogram = 7;
+ }
+}
+
+message TSingleSample {
+ repeated TLabel Labels = 1;
+ EMetricType MetricType = 2;
+
+ // inlined TPoint
+ uint64 Time = 3;
+ oneof Value {
+ sfixed64 Int64 = 4;
+ fixed64 Uint64 = 5;
+ double Float64 = 6;
+ THistogram Histogram = 7;
TSummaryDouble SummaryDouble = 8;
TLogHistogram LogHistogram = 9;
- }
-}
-
-message TMultiSample {
- repeated TLabel Labels = 1;
- EMetricType MetricType = 2;
- repeated TPoint Points = 3;
-}
-
-message TSingleSamplesList {
- uint64 CommonTime = 1;
- repeated TLabel CommonLabels = 2;
- repeated TSingleSample Samples = 3;
-}
-
-message TMultiSamplesList {
- uint64 CommonTime = 1;
- repeated TLabel CommonLabels = 2;
- repeated TMultiSample Samples = 3;
-}
+ }
+}
+
+message TMultiSample {
+ repeated TLabel Labels = 1;
+ EMetricType MetricType = 2;
+ repeated TPoint Points = 3;
+}
+
+message TSingleSamplesList {
+ uint64 CommonTime = 1;
+ repeated TLabel CommonLabels = 2;
+ repeated TSingleSample Samples = 3;
+}
+
+message TMultiSamplesList {
+ uint64 CommonTime = 1;
+ repeated TLabel CommonLabels = 2;
+ repeated TMultiSample Samples = 3;
+}
diff --git a/library/cpp/monlib/encode/protobuf/protos/ya.make b/library/cpp/monlib/encode/protobuf/protos/ya.make
index 29a87a0b21..88ff3ddf88 100644
--- a/library/cpp/monlib/encode/protobuf/protos/ya.make
+++ b/library/cpp/monlib/encode/protobuf/protos/ya.make
@@ -1,14 +1,14 @@
-PROTO_LIBRARY()
-
+PROTO_LIBRARY()
+
OWNER(
jamel
g:solomon
)
-
-SRCS(
- samples.proto
-)
-
+
+SRCS(
+ samples.proto
+)
+
EXCLUDE_TAGS(GO_PROTO)
-END()
+END()