aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/service/pages
diff options
context:
space:
mode:
authorivanzhukov <ivanzhukov@yandex-team.ru>2022-02-10 16:49:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:40 +0300
commit0892d79ab411592ad25175c4bdadbcb09b466cf5 (patch)
tree98dfdd45463c9bd747101748a9ca25d2917390fd /library/cpp/monlib/service/pages
parent1b7466cb957659079ebebbb5d76e64e51f3306f0 (diff)
downloadydb-0892d79ab411592ad25175c4bdadbcb09b466cf5.tar.gz
Restoring authorship annotation for <ivanzhukov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/service/pages')
-rw-r--r--library/cpp/monlib/service/pages/registry_mon_page.cpp6
-rw-r--r--library/cpp/monlib/service/pages/registry_mon_page.h22
-rw-r--r--library/cpp/monlib/service/pages/templates.h2
3 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/monlib/service/pages/registry_mon_page.cpp b/library/cpp/monlib/service/pages/registry_mon_page.cpp
index c59e50f622..f6c35b808d 100644
--- a/library/cpp/monlib/service/pages/registry_mon_page.cpp
+++ b/library/cpp/monlib/service/pages/registry_mon_page.cpp
@@ -30,9 +30,9 @@ namespace NMonitoring {
}
out.Write(resp);
- RegistryRawPtr_->Accept(TInstant::Zero(), encoder.Get());
-
- encoder->Close();
+ RegistryRawPtr_->Accept(TInstant::Zero(), encoder.Get());
+
+ encoder->Close();
} else {
THtmlMonPage::Output(request);
}
diff --git a/library/cpp/monlib/service/pages/registry_mon_page.h b/library/cpp/monlib/service/pages/registry_mon_page.h
index 2d26d3319c..b8caff9ad2 100644
--- a/library/cpp/monlib/service/pages/registry_mon_page.h
+++ b/library/cpp/monlib/service/pages/registry_mon_page.h
@@ -8,25 +8,25 @@ namespace NMonitoring {
// For now this class can only enumerate all metrics without any grouping or serve JSON/Spack/Prometheus
class TMetricRegistryPage: public TPreMonPage {
public:
- TMetricRegistryPage(const TString& path, const TString& title, TAtomicSharedPtr<IMetricSupplier> registry)
+ TMetricRegistryPage(const TString& path, const TString& title, TAtomicSharedPtr<IMetricSupplier> registry)
: TPreMonPage(path, title)
- , Registry_(registry)
- , RegistryRawPtr_(Registry_.Get())
- {
- }
-
- TMetricRegistryPage(const TString& path, const TString& title, IMetricSupplier* registry)
- : TPreMonPage(path, title)
- , RegistryRawPtr_(registry)
+ , Registry_(registry)
+ , RegistryRawPtr_(Registry_.Get())
{
}
+ TMetricRegistryPage(const TString& path, const TString& title, IMetricSupplier* registry)
+ : TPreMonPage(path, title)
+ , RegistryRawPtr_(registry)
+ {
+ }
+
void Output(NMonitoring::IMonHttpRequest& request) override;
void OutputText(IOutputStream& out, NMonitoring::IMonHttpRequest&) override;
private:
- TAtomicSharedPtr<IMetricSupplier> Registry_;
- IMetricSupplier* RegistryRawPtr_;
+ TAtomicSharedPtr<IMetricSupplier> Registry_;
+ IMetricSupplier* RegistryRawPtr_;
};
}
diff --git a/library/cpp/monlib/service/pages/templates.h b/library/cpp/monlib/service/pages/templates.h
index b4656f059f..cb1ec4d532 100644
--- a/library/cpp/monlib/service/pages/templates.h
+++ b/library/cpp/monlib/service/pages/templates.h
@@ -6,7 +6,7 @@
#define WITH_SCOPED(var, value) WITH_SCOPED_I(var, value, Y_GENERATE_UNIQUE_ID(WITH_SCOPED_LABEL_))
#define WITH_SCOPED_I(var, value, label) \
- if (auto var = (value)) { \
+ if (auto var = (value)) { \
Y_UNUSED(var); \
goto label; \
} else \