diff options
author | gusev-p <gusev-p@yandex-team.ru> | 2022-02-10 16:47:20 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:20 +0300 |
commit | 1715700d00b30399d3648be821fd585ae552365e (patch) | |
tree | 6857a59158ea36e56d87fb32fbb8e44673c0ca0f /library/cpp/monlib/encode/spack/spack_v1.h | |
parent | b23c1d7a8015c2006a148fd93b84cdeb0aee17a3 (diff) | |
download | ydb-1715700d00b30399d3648be821fd585ae552365e.tar.gz |
Restoring authorship annotation for <gusev-p@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/encode/spack/spack_v1.h')
-rw-r--r-- | library/cpp/monlib/encode/spack/spack_v1.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/monlib/encode/spack/spack_v1.h b/library/cpp/monlib/encode/spack/spack_v1.h index cf1c9417b9..e962d21467 100644 --- a/library/cpp/monlib/encode/spack/spack_v1.h +++ b/library/cpp/monlib/encode/spack/spack_v1.h @@ -78,7 +78,7 @@ namespace NMonitoring { /////////////////////////////////////////////////////////////////////////////// struct Y_PACKED TSpackHeader { ui16 Magic = 0x5053; // "SP" - ui16 Version; // MSB - major version, LSB - minor version + ui16 Version; // MSB - major version, LSB - minor version ui16 HeaderSize = sizeof(TSpackHeader); ui8 TimePrecision; ui8 Compression; @@ -89,12 +89,12 @@ namespace NMonitoring { // add new fields here }; - enum ESpackV1Version: ui16 { - SV1_00 = 0x0100, - SV1_01 = 0x0101, - SV1_02 = 0x0102 - }; - + enum ESpackV1Version: ui16 { + SV1_00 = 0x0100, + SV1_01 = 0x0101, + SV1_02 = 0x0102 + }; + IMetricEncoderPtr EncoderSpackV1( IOutputStream* out, ETimePrecision timePrecision, @@ -102,14 +102,14 @@ namespace NMonitoring { EMetricsMergingMode mergingMode = EMetricsMergingMode::DEFAULT ); - IMetricEncoderPtr EncoderSpackV12( - IOutputStream* out, - ETimePrecision timePrecision, - ECompression compression, - EMetricsMergingMode mergingMode = EMetricsMergingMode::DEFAULT, - TStringBuf metricNameLabel = "name" - ); - - void DecodeSpackV1(IInputStream* in, IMetricConsumer* c, TStringBuf metricNameLabel = "name"); + IMetricEncoderPtr EncoderSpackV12( + IOutputStream* out, + ETimePrecision timePrecision, + ECompression compression, + EMetricsMergingMode mergingMode = EMetricsMergingMode::DEFAULT, + TStringBuf metricNameLabel = "name" + ); + void DecodeSpackV1(IInputStream* in, IMetricConsumer* c, TStringBuf metricNameLabel = "name"); + } |