diff options
| author | victor-k <[email protected]> | 2022-02-10 16:50:38 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:38 +0300 | 
| commit | 17cbaf6d2b820cd304e92faa6ac2e6426605cae8 (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/monlib/deprecated | |
| parent | f632afcab870d2327aaa8388ceeb7aeb2bb6a1c1 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/deprecated')
| -rw-r--r-- | library/cpp/monlib/deprecated/json/writer.cpp | 6 | ||||
| -rw-r--r-- | library/cpp/monlib/deprecated/json/writer.h | 16 | 
2 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/monlib/deprecated/json/writer.cpp b/library/cpp/monlib/deprecated/json/writer.cpp index acbaecb1f14..a581f2e07ac 100644 --- a/library/cpp/monlib/deprecated/json/writer.cpp +++ b/library/cpp/monlib/deprecated/json/writer.cpp @@ -35,18 +35,18 @@ namespace NMonitoring {          TransitionState(STATE_COMMON_LABELS, STATE_DOCUMENT);          JsonWriter.CloseMap();      } -  +      void TDeprecatedJsonWriter::WriteCommonLabel(TStringBuf name, TStringBuf value) {          TransitionState(STATE_COMMON_LABELS, STATE_COMMON_LABELS);          JsonWriter.Write(name, value);      } -  +      void TDeprecatedJsonWriter::OpenMetrics() {          TransitionState(STATE_DOCUMENT, STATE_METRICS);          JsonWriter.Write("sensors");          JsonWriter.OpenArray();      } -  +      void TDeprecatedJsonWriter::CloseMetrics() {          TransitionState(STATE_METRICS, STATE_DOCUMENT);          JsonWriter.CloseArray(); diff --git a/library/cpp/monlib/deprecated/json/writer.h b/library/cpp/monlib/deprecated/json/writer.h index dea61323eac..183288143c1 100644 --- a/library/cpp/monlib/deprecated/json/writer.h +++ b/library/cpp/monlib/deprecated/json/writer.h @@ -17,7 +17,7 @@ namespace NMonitoring {          enum EState {              STATE_ROOT,              STATE_DOCUMENT, -            STATE_COMMON_LABELS,  +            STATE_COMMON_LABELS,              STATE_METRICS,              STATE_METRIC,              STATE_LABELS, @@ -30,11 +30,11 @@ namespace NMonitoring {          void OpenDocument();          void CloseDocument(); -        void OpenCommonLabels();  -        void CloseCommonLabels();  -  -        void WriteCommonLabel(TStringBuf name, TStringBuf value);  -  +        void OpenCommonLabels(); +        void CloseCommonLabels(); + +        void WriteCommonLabel(TStringBuf name, TStringBuf value); +          void OpenMetrics();          void CloseMetrics(); @@ -57,8 +57,8 @@ namespace NMonitoring {          void WriteValue(long long value);          void WriteDoubleValue(double d); -  -        void WriteTs(ui64 ts);  + +        void WriteTs(ui64 ts);      private:          void WriteLabelsInner(TStringBuf name, TStringBuf value) {  | 
