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/json/ut | |
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/json/ut')
5 files changed, 159 insertions, 159 deletions
diff --git a/library/cpp/monlib/encode/json/ut/expected.json b/library/cpp/monlib/encode/json/ut/expected.json index ead853455b..30c405b0bd 100644 --- a/library/cpp/monlib/encode/json/ut/expected.json +++ b/library/cpp/monlib/encode/json/ut/expected.json @@ -11,7 +11,7 @@ "labels": { "metric":"single", - "labels":"l1" + "labels":"l1" }, "ts":1509843723, "value":17 @@ -21,7 +21,7 @@ "labels": { "metric":"single", - "labels":"l2" + "labels":"l2" }, "ts":1509843723, "value":17 @@ -31,27 +31,27 @@ "labels": { "metric":"single", - "labels":"l3" + "labels":"l3" }, "ts":1509843723, "value":3.14 }, { - "kind":"IGAUGE", - "labels": - { - "metric":"single_igauge", - "labels":"l4" - }, - "ts":1509843723, - "value":42 - }, - { + "kind":"IGAUGE", + "labels": + { + "metric":"single_igauge", + "labels":"l4" + }, + "ts":1509843723, + "value":42 + }, + { "kind":"GAUGE", "labels": { "metric":"multiple", - "labels":"l5" + "labels":"l5" }, "timeseries": [ @@ -85,7 +85,7 @@ "labels": { "metric":"multiple", - "labels":"l6" + "labels":"l6" } } ] diff --git a/library/cpp/monlib/encode/json/ut/expected_buffered.json b/library/cpp/monlib/encode/json/ut/expected_buffered.json index 9a6a1d6201..0a33842437 100644 --- a/library/cpp/monlib/encode/json/ut/expected_buffered.json +++ b/library/cpp/monlib/encode/json/ut/expected_buffered.json @@ -37,16 +37,16 @@ "value":3.14 }, { - "kind":"IGAUGE", - "labels": - { + "kind":"IGAUGE", + "labels": + { "labels":"l4", "metric":"single_igauge" - }, - "ts":1509843723, - "value":42 - }, - { + }, + "ts":1509843723, + "value":42 + }, + { "kind":"GAUGE", "labels": { @@ -71,11 +71,11 @@ }, { "kind":"COUNTER", - "labels": - { + "labels": + { "labels":"l6", "metric":"multiple" - }, + }, "timeseries": [ { @@ -86,7 +86,7 @@ "ts":1509843738, "value":1338 } - ] + ] } ] } diff --git a/library/cpp/monlib/encode/json/ut/expected_cloud.json b/library/cpp/monlib/encode/json/ut/expected_cloud.json index 6184811579..78e90ec3be 100644 --- a/library/cpp/monlib/encode/json/ut/expected_cloud.json +++ b/library/cpp/monlib/encode/json/ut/expected_cloud.json @@ -1,92 +1,92 @@ { - "ts":"2017-07-14T02:40:00.000000Z", - "labels": + "ts":"2017-07-14T02:40:00.000000Z", + "labels": { "project":"solomon" }, - "metrics": + "metrics": [ { - "type":"COUNTER", + "type":"COUNTER", "labels": { - "labels":"l1" + "labels":"l1" }, - "name":"single", - "ts":"2017-11-05T01:02:03.000000Z", + "name":"single", + "ts":"2017-11-05T01:02:03.000000Z", "value":17 }, { - "type":"RATE", + "type":"RATE", "labels": { - "labels":"l2" + "labels":"l2" }, - "name":"single", - "ts":"2017-11-05T01:02:03.000000Z", + "name":"single", + "ts":"2017-11-05T01:02:03.000000Z", "value":17 }, { - "type":"DGAUGE", + "type":"DGAUGE", "labels": { - "labels":"l3" + "labels":"l3" }, - "name":"single", - "ts":"2017-11-05T01:02:03.000000Z", + "name":"single", + "ts":"2017-11-05T01:02:03.000000Z", "value":3.14 }, { - "type":"IGAUGE", + "type":"IGAUGE", "labels": { - "labels":"l4" + "labels":"l4" }, - "name":"single_igauge", - "ts":"2017-11-05T01:02:03.000000Z", - "value":42 - }, - { - "type":"DGAUGE", - "labels": - { - "labels":"l5" - }, - "name":"multiple", + "name":"single_igauge", + "ts":"2017-11-05T01:02:03.000000Z", + "value":42 + }, + { + "type":"DGAUGE", + "labels": + { + "labels":"l5" + }, + "name":"multiple", "timeseries": [ { - "ts":"2017-11-05T01:02:03.000000Z", + "ts":"2017-11-05T01:02:03.000000Z", "value":"nan" }, { - "ts":"2017-11-05T01:02:18.000000Z", + "ts":"2017-11-05T01:02:18.000000Z", "value":"inf" }, { - "ts":"2017-11-05T01:02:33.000000Z", + "ts":"2017-11-05T01:02:33.000000Z", "value":"-inf" } ] }, { - "type":"COUNTER", + "type":"COUNTER", "timeseries": [ { - "ts":"2017-11-05T01:02:03.000000Z", + "ts":"2017-11-05T01:02:03.000000Z", "value":1337 }, { - "ts":"2017-11-05T01:02:18.000000Z", + "ts":"2017-11-05T01:02:18.000000Z", "value":1338 } ], "labels": { - "labels":"l6" - }, - "name":"multiple" + "labels":"l6" + }, + "name":"multiple" } ] } diff --git a/library/cpp/monlib/encode/json/ut/expected_cloud_buffered.json b/library/cpp/monlib/encode/json/ut/expected_cloud_buffered.json index be237d522b..5b7aeb836e 100644 --- a/library/cpp/monlib/encode/json/ut/expected_cloud_buffered.json +++ b/library/cpp/monlib/encode/json/ut/expected_cloud_buffered.json @@ -1,92 +1,92 @@ -{ - "ts":"2017-07-14T02:40:00.000000Z", - "labels": - { - "project":"solomon" - }, - "metrics": - [ - { - "type":"COUNTER", - "labels": - { - "labels":"l1" - }, - "name":"single", - "ts":"2017-11-05T01:02:03.000000Z", - "value":17 - }, - { - "type":"RATE", - "labels": - { - "labels":"l2" - }, - "name":"single", - "ts":"2017-11-05T01:02:03.000000Z", - "value":17 - }, - { - "type":"DGAUGE", - "labels": - { - "labels":"l3" - }, - "name":"single", - "ts":"2017-11-05T01:02:03.000000Z", - "value":3.14 - }, - { - "type":"IGAUGE", - "labels": - { - "labels":"l4" - }, - "name":"single_igauge", - "ts":"2017-11-05T01:02:03.000000Z", - "value":42 - }, - { - "type":"DGAUGE", - "labels": - { - "labels":"l5" - }, - "name":"multiple", - "timeseries": - [ - { - "ts":"2017-11-05T01:02:03.000000Z", - "value":"nan" - }, - { - "ts":"2017-11-05T01:02:18.000000Z", - "value":"inf" - }, - { - "ts":"2017-11-05T01:02:33.000000Z", - "value":"-inf" - } - ] - }, - { - "type":"COUNTER", - "labels": - { - "labels":"l6" - }, - "name":"multiple", - "timeseries": - [ - { - "ts":"2017-11-05T01:02:03.000000Z", - "value":1337 - }, - { - "ts":"2017-11-05T01:02:18.000000Z", - "value":1338 - } - ] - } - ] -} +{ + "ts":"2017-07-14T02:40:00.000000Z", + "labels": + { + "project":"solomon" + }, + "metrics": + [ + { + "type":"COUNTER", + "labels": + { + "labels":"l1" + }, + "name":"single", + "ts":"2017-11-05T01:02:03.000000Z", + "value":17 + }, + { + "type":"RATE", + "labels": + { + "labels":"l2" + }, + "name":"single", + "ts":"2017-11-05T01:02:03.000000Z", + "value":17 + }, + { + "type":"DGAUGE", + "labels": + { + "labels":"l3" + }, + "name":"single", + "ts":"2017-11-05T01:02:03.000000Z", + "value":3.14 + }, + { + "type":"IGAUGE", + "labels": + { + "labels":"l4" + }, + "name":"single_igauge", + "ts":"2017-11-05T01:02:03.000000Z", + "value":42 + }, + { + "type":"DGAUGE", + "labels": + { + "labels":"l5" + }, + "name":"multiple", + "timeseries": + [ + { + "ts":"2017-11-05T01:02:03.000000Z", + "value":"nan" + }, + { + "ts":"2017-11-05T01:02:18.000000Z", + "value":"inf" + }, + { + "ts":"2017-11-05T01:02:33.000000Z", + "value":"-inf" + } + ] + }, + { + "type":"COUNTER", + "labels": + { + "labels":"l6" + }, + "name":"multiple", + "timeseries": + [ + { + "ts":"2017-11-05T01:02:03.000000Z", + "value":1337 + }, + { + "ts":"2017-11-05T01:02:18.000000Z", + "value":1338 + } + ] + } + ] +} diff --git a/library/cpp/monlib/encode/json/ut/ya.make b/library/cpp/monlib/encode/json/ut/ya.make index e50c4f4903..851443ae62 100644 --- a/library/cpp/monlib/encode/json/ut/ya.make +++ b/library/cpp/monlib/encode/json/ut/ya.make @@ -15,9 +15,9 @@ RESOURCE( 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 + 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 |