diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
commit | bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch) | |
tree | 1d1df72c0541a59a81439842f46d95396d3e7189 /library/cpp/monlib/encode | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'library/cpp/monlib/encode')
20 files changed, 288 insertions, 0 deletions
diff --git a/library/cpp/monlib/encode/buffered/ut/ya.make b/library/cpp/monlib/encode/buffered/ut/ya.make new file mode 100644 index 0000000000..365b6e4740 --- /dev/null +++ b/library/cpp/monlib/encode/buffered/ut/ya.make @@ -0,0 +1,7 @@ +UNITTEST_FOR(library/cpp/monlib/encode/buffered) + +SRCS( + string_pool_ut.cpp +) + +END() diff --git a/library/cpp/monlib/encode/buffered/ya.make b/library/cpp/monlib/encode/buffered/ya.make new file mode 100644 index 0000000000..e3d77932b1 --- /dev/null +++ b/library/cpp/monlib/encode/buffered/ya.make @@ -0,0 +1,17 @@ +LIBRARY() + +SRCS( + buffered_encoder_base.cpp + string_pool.cpp +) + +PEERDIR( + library/cpp/monlib/encode + library/cpp/monlib/metrics +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/monlib/encode/fake/ya.make b/library/cpp/monlib/encode/fake/ya.make new file mode 100644 index 0000000000..e5849dd8e9 --- /dev/null +++ b/library/cpp/monlib/encode/fake/ya.make @@ -0,0 +1,7 @@ +LIBRARY() + +SRCS( + fake.cpp +) + +END() diff --git a/library/cpp/monlib/encode/fuzz/ya.make b/library/cpp/monlib/encode/fuzz/ya.make new file mode 100644 index 0000000000..d9ca172bae --- /dev/null +++ b/library/cpp/monlib/encode/fuzz/ya.make @@ -0,0 +1,5 @@ +RECURSE_ROOT_RELATIVE( + library/cpp/monlib/encode/json/fuzz + library/cpp/monlib/encode/prometheus/fuzz + library/cpp/monlib/encode/spack/fuzz +) diff --git a/library/cpp/monlib/encode/json/fuzz/ya.make b/library/cpp/monlib/encode/json/fuzz/ya.make new file mode 100644 index 0000000000..545900c5c1 --- /dev/null +++ b/library/cpp/monlib/encode/json/fuzz/ya.make @@ -0,0 +1,14 @@ +FUZZ() + +PEERDIR( + library/cpp/monlib/encode/json + library/cpp/monlib/encode/fake +) + +SIZE(MEDIUM) + +SRCS( + main.cpp +) + +END() diff --git a/library/cpp/monlib/encode/json/ut/ya.make b/library/cpp/monlib/encode/json/ut/ya.make new file mode 100644 index 0000000000..9be38d2fd4 --- /dev/null +++ b/library/cpp/monlib/encode/json/ut/ya.make @@ -0,0 +1,41 @@ +UNITTEST_FOR(library/cpp/monlib/encode/json) + +SRCS( + json_decoder_ut.cpp + json_ut.cpp +) + +RESOURCE( + buffered_test.json /buffered_test.json + buffered_ts_merge.json /buffered_ts_merge.json + empty_series.json /empty_series.json + expected.json /expected.json + expected_buffered.json /expected_buffered.json + expected_cloud.json /expected_cloud.json + expected_cloud_buffered.json /expected_cloud_buffered.json + merged.json /merged.json + histogram_timeseries.json /histogram_timeseries.json + histogram_value.json /histogram_value.json + histogram_value_inf_before_bounds.json /histogram_value_inf_before_bounds.json + int_gauge.json /int_gauge.json + sensors.json /sensors.json + metrics.json /metrics.json + named_metrics.json /named_metrics.json + test_decode_to_encode.json /test_decode_to_encode.json + crash.json /crash.json + hist_crash.json /hist_crash.json + summary_value.json /summary_value.json + summary_inf.json /summary_inf.json + summary_timeseries.json /summary_timeseries.json + log_histogram_value.json /log_histogram_value.json + log_histogram_timeseries.json /log_histogram_timeseries.json +) + +PEERDIR( + library/cpp/json + library/cpp/monlib/consumers + library/cpp/monlib/encode/protobuf + library/cpp/resource +) + +END() diff --git a/library/cpp/monlib/encode/json/ya.make b/library/cpp/monlib/encode/json/ya.make new file mode 100644 index 0000000000..45997b5037 --- /dev/null +++ b/library/cpp/monlib/encode/json/ya.make @@ -0,0 +1,20 @@ +LIBRARY() + +SRCS( + json_decoder.cpp + json_encoder.cpp +) + +PEERDIR( + library/cpp/monlib/encode + library/cpp/monlib/encode/buffered + library/cpp/monlib/exception + library/cpp/json + library/cpp/json/writer +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/monlib/encode/legacy_protobuf/protos/ya.make b/library/cpp/monlib/encode/legacy_protobuf/protos/ya.make new file mode 100644 index 0000000000..3623e094b5 --- /dev/null +++ b/library/cpp/monlib/encode/legacy_protobuf/protos/ya.make @@ -0,0 +1,11 @@ +PROTO_LIBRARY() + +SRCS( + metric_meta.proto +) + +IF (NOT PY_PROTOS_FOR) + EXCLUDE_TAGS(GO_PROTO) +ENDIF() + +END() diff --git a/library/cpp/monlib/encode/prometheus/fuzz/ya.make b/library/cpp/monlib/encode/prometheus/fuzz/ya.make new file mode 100644 index 0000000000..22c3ca5783 --- /dev/null +++ b/library/cpp/monlib/encode/prometheus/fuzz/ya.make @@ -0,0 +1,14 @@ +FUZZ() + +PEERDIR( + library/cpp/monlib/encode/prometheus + library/cpp/monlib/encode/fake +) + +SIZE(MEDIUM) + +SRCS( + main.cpp +) + +END() diff --git a/library/cpp/monlib/encode/prometheus/ut/ya.make b/library/cpp/monlib/encode/prometheus/ut/ya.make new file mode 100644 index 0000000000..735e48d05f --- /dev/null +++ b/library/cpp/monlib/encode/prometheus/ut/ya.make @@ -0,0 +1,12 @@ +UNITTEST_FOR(library/cpp/monlib/encode/prometheus) + +SRCS( + prometheus_encoder_ut.cpp + prometheus_decoder_ut.cpp +) + +PEERDIR( + library/cpp/monlib/encode/protobuf +) + +END() diff --git a/library/cpp/monlib/encode/prometheus/ya.make b/library/cpp/monlib/encode/prometheus/ya.make new file mode 100644 index 0000000000..c43e4c5e88 --- /dev/null +++ b/library/cpp/monlib/encode/prometheus/ya.make @@ -0,0 +1,18 @@ +LIBRARY() + +SRCS( + prometheus_decoder.cpp + prometheus_encoder.cpp +) + +PEERDIR( + library/cpp/monlib/encode + library/cpp/monlib/encode/buffered +) + +END() + +RECURSE( + fuzz + ut +) diff --git a/library/cpp/monlib/encode/protobuf/protos/ya.make b/library/cpp/monlib/encode/protobuf/protos/ya.make new file mode 100644 index 0000000000..a1c3ea1d58 --- /dev/null +++ b/library/cpp/monlib/encode/protobuf/protos/ya.make @@ -0,0 +1,9 @@ +PROTO_LIBRARY() + +SRCS( + samples.proto +) + +EXCLUDE_TAGS(GO_PROTO) + +END() diff --git a/library/cpp/monlib/encode/protobuf/ya.make b/library/cpp/monlib/encode/protobuf/ya.make new file mode 100644 index 0000000000..2c11e9b793 --- /dev/null +++ b/library/cpp/monlib/encode/protobuf/ya.make @@ -0,0 +1,12 @@ +LIBRARY() + +SRCS( + protobuf_encoder.cpp +) + +PEERDIR( + library/cpp/monlib/encode + library/cpp/monlib/encode/protobuf/protos +) + +END() diff --git a/library/cpp/monlib/encode/spack/fuzz/ya.make b/library/cpp/monlib/encode/spack/fuzz/ya.make new file mode 100644 index 0000000000..bacb1f50a6 --- /dev/null +++ b/library/cpp/monlib/encode/spack/fuzz/ya.make @@ -0,0 +1,16 @@ +FUZZ() + +FUZZ_OPTS(-rss_limit_mb=1024) + +SIZE(MEDIUM) + +PEERDIR( + library/cpp/monlib/encode/spack + library/cpp/monlib/encode/fake +) + +SRCS( + main.cpp +) + +END() diff --git a/library/cpp/monlib/encode/spack/ut/ya.make b/library/cpp/monlib/encode/spack/ut/ya.make new file mode 100644 index 0000000000..ff42d19b70 --- /dev/null +++ b/library/cpp/monlib/encode/spack/ut/ya.make @@ -0,0 +1,11 @@ +UNITTEST_FOR(library/cpp/monlib/encode/spack) + +SRCS( + spack_v1_ut.cpp +) + +PEERDIR( + library/cpp/monlib/encode/protobuf +) + +END() diff --git a/library/cpp/monlib/encode/spack/ya.make b/library/cpp/monlib/encode/spack/ya.make new file mode 100644 index 0000000000..22ccf0d786 --- /dev/null +++ b/library/cpp/monlib/encode/spack/ya.make @@ -0,0 +1,25 @@ +LIBRARY() + +SRCS( + spack_v1_decoder.cpp + spack_v1_encoder.cpp + varint.cpp + compression.cpp +) + +PEERDIR( + library/cpp/monlib/encode/buffered + library/cpp/monlib/exception + + contrib/libs/lz4 + contrib/libs/xxhash + contrib/libs/zlib + contrib/libs/zstd +) + +END() + +RECURSE( + fuzz + ut +) diff --git a/library/cpp/monlib/encode/text/ut/ya.make b/library/cpp/monlib/encode/text/ut/ya.make new file mode 100644 index 0000000000..beb4081959 --- /dev/null +++ b/library/cpp/monlib/encode/text/ut/ya.make @@ -0,0 +1,7 @@ +UNITTEST_FOR(library/cpp/monlib/encode/text) + +SRCS( + text_encoder_ut.cpp +) + +END() diff --git a/library/cpp/monlib/encode/text/ya.make b/library/cpp/monlib/encode/text/ya.make new file mode 100644 index 0000000000..d328c1784e --- /dev/null +++ b/library/cpp/monlib/encode/text/ya.make @@ -0,0 +1,15 @@ +LIBRARY() + +SRCS( + text_encoder.cpp +) + +PEERDIR( + library/cpp/monlib/encode +) + +END() + +RECURSE_FOR_TESTS( + ut +) diff --git a/library/cpp/monlib/encode/ut/ya.make b/library/cpp/monlib/encode/ut/ya.make new file mode 100644 index 0000000000..96e75d067c --- /dev/null +++ b/library/cpp/monlib/encode/ut/ya.make @@ -0,0 +1,7 @@ +UNITTEST_FOR(library/cpp/monlib/encode) + +SRCS( + format_ut.cpp +) + +END() diff --git a/library/cpp/monlib/encode/ya.make b/library/cpp/monlib/encode/ya.make new file mode 100644 index 0000000000..9052c73911 --- /dev/null +++ b/library/cpp/monlib/encode/ya.make @@ -0,0 +1,20 @@ +LIBRARY() + +SRCS( + encoder.cpp + encoder_state.cpp + format.cpp +) + +PEERDIR( + library/cpp/monlib/metrics +) + +GENERATE_ENUM_SERIALIZATION_WITH_HEADER(encoder_state_enum.h) + +END() + +RECURSE( + fuzz + ut +) |