aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/deprecated
diff options
context:
space:
mode:
authorvictor-k <victor-k@yandex-team.ru>2022-02-10 16:50:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:38 +0300
commit17cbaf6d2b820cd304e92faa6ac2e6426605cae8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/monlib/deprecated
parentf632afcab870d2327aaa8388ceeb7aeb2bb6a1c1 (diff)
downloadydb-17cbaf6d2b820cd304e92faa6ac2e6426605cae8.tar.gz
Restoring authorship annotation for <victor-k@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/deprecated')
-rw-r--r--library/cpp/monlib/deprecated/json/writer.cpp6
-rw-r--r--library/cpp/monlib/deprecated/json/writer.h16
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 acbaecb1f1..a581f2e07a 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 dea61323ea..183288143c 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) {