aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/service
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:10 +0300
commitbaa58daefa91fde4b4769facdbd2903763b9c6a8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/monlib/service
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/service')
-rw-r--r--library/cpp/monlib/service/format.h2
-rw-r--r--library/cpp/monlib/service/pages/index_mon_page.cpp2
-rw-r--r--library/cpp/monlib/service/pages/mon_page.h2
-rw-r--r--library/cpp/monlib/service/pages/registry_mon_page.cpp2
-rw-r--r--library/cpp/monlib/service/pages/templates.h54
-rw-r--r--library/cpp/monlib/service/service.cpp16
6 files changed, 39 insertions, 39 deletions
diff --git a/library/cpp/monlib/service/format.h b/library/cpp/monlib/service/format.h
index 990b953945..0044b586b1 100644
--- a/library/cpp/monlib/service/format.h
+++ b/library/cpp/monlib/service/format.h
@@ -48,7 +48,7 @@ namespace NMonitoring {
auto&& formatStr = req.GetParams()
.Get(TStringBuf("format"));
- if (!formatStr.empty()) {
+ if (!formatStr.empty()) {
if (formatStr == TStringBuf("SPACK")) {
return EFormat::SPACK;
} else if (formatStr == TStringBuf("TEXT")) {
diff --git a/library/cpp/monlib/service/pages/index_mon_page.cpp b/library/cpp/monlib/service/pages/index_mon_page.cpp
index 582eac2908..83ff8b529a 100644
--- a/library/cpp/monlib/service/pages/index_mon_page.cpp
+++ b/library/cpp/monlib/service/pages/index_mon_page.cpp
@@ -32,7 +32,7 @@ void TIndexMonPage::Output(IMonHttpRequest& request) {
if (i != PagesByPath.end()) {
found = i->second;
pathInfo = request.GetPathInfo().substr(pathTmp.size());
- Y_VERIFY(pathInfo.empty() || pathInfo.StartsWith('/'));
+ Y_VERIFY(pathInfo.empty() || pathInfo.StartsWith('/'));
break;
}
size_t slash = pathTmp.find_last_of('/');
diff --git a/library/cpp/monlib/service/pages/mon_page.h b/library/cpp/monlib/service/pages/mon_page.h
index 9903a16670..e396612bb0 100644
--- a/library/cpp/monlib/service/pages/mon_page.h
+++ b/library/cpp/monlib/service/pages/mon_page.h
@@ -57,7 +57,7 @@ namespace NMonitoring {
}
bool IsInIndex() const {
- return !Title.empty();
+ return !Title.empty();
}
virtual void Output(IMonHttpRequest& request) = 0;
diff --git a/library/cpp/monlib/service/pages/registry_mon_page.cpp b/library/cpp/monlib/service/pages/registry_mon_page.cpp
index 294e140d92..c59e50f622 100644
--- a/library/cpp/monlib/service/pages/registry_mon_page.cpp
+++ b/library/cpp/monlib/service/pages/registry_mon_page.cpp
@@ -11,7 +11,7 @@ namespace NMonitoring {
const auto formatStr = TStringBuf{request.GetPathInfo()}.RNextTok('/');
auto& out = request.Output();
- if (!formatStr.empty()) {
+ if (!formatStr.empty()) {
IMetricEncoderPtr encoder;
TString resp;
diff --git a/library/cpp/monlib/service/pages/templates.h b/library/cpp/monlib/service/pages/templates.h
index f1479b643f..b4656f059f 100644
--- a/library/cpp/monlib/service/pages/templates.h
+++ b/library/cpp/monlib/service/pages/templates.h
@@ -204,33 +204,33 @@ namespace NMonitoring {
IOutputStream& Str;
};
- extern const char HtmlTag[5];
- extern const char HeadTag[5];
- extern const char BodyTag[5];
- extern const char DivTag[4];
- extern const char TableTag[6];
- extern const char TableHeadTag[6];
- extern const char TableBodyTag[6];
- extern const char TableRTag[3];
- extern const char TableDTag[3];
- extern const char TableHTag[3];
- extern const char FormTag[5];
- extern const char LabelTag[6];
- extern const char SpanTag[5];
- extern const char CaptionTag[8];
- extern const char PreTag[4];
- extern const char ParaTag[2];
- extern const char H1Tag[3];
- extern const char H2Tag[3];
- extern const char H3Tag[3];
- extern const char H4Tag[3];
- extern const char H5Tag[3];
- extern const char H6Tag[3];
- extern const char SmallTag[6];
- extern const char StrongTag[7];
- extern const char ListTag[3];
- extern const char UListTag[3];
- extern const char OListTag[3];
+ extern const char HtmlTag[5];
+ extern const char HeadTag[5];
+ extern const char BodyTag[5];
+ extern const char DivTag[4];
+ extern const char TableTag[6];
+ extern const char TableHeadTag[6];
+ extern const char TableBodyTag[6];
+ extern const char TableRTag[3];
+ extern const char TableDTag[3];
+ extern const char TableHTag[3];
+ extern const char FormTag[5];
+ extern const char LabelTag[6];
+ extern const char SpanTag[5];
+ extern const char CaptionTag[8];
+ extern const char PreTag[4];
+ extern const char ParaTag[2];
+ extern const char H1Tag[3];
+ extern const char H2Tag[3];
+ extern const char H3Tag[3];
+ extern const char H4Tag[3];
+ extern const char H5Tag[3];
+ extern const char H6Tag[3];
+ extern const char SmallTag[6];
+ extern const char StrongTag[7];
+ extern const char ListTag[3];
+ extern const char UListTag[3];
+ extern const char OListTag[3];
extern const char DListTag[3];
extern const char DTermTag[3];
extern const char DDescTag[3];
diff --git a/library/cpp/monlib/service/service.cpp b/library/cpp/monlib/service/service.cpp
index 8a7d8b01ea..929efbf816 100644
--- a/library/cpp/monlib/service/service.cpp
+++ b/library/cpp/monlib/service/service.cpp
@@ -21,11 +21,11 @@ namespace NMonitoring {
RemoteAddr = remoteAddr;
THttpHeaderParser parser;
parser.Init(&Header);
- if (parser.Execute(in.FirstLine().data(), in.FirstLine().size()) < 0) {
+ if (parser.Execute(in.FirstLine().data(), in.FirstLine().size()) < 0) {
out << "HTTP/1.1 400 Bad request\r\nConnection: Close\r\n\r\n";
return;
}
- if (Url.Parse(Header.GetUrl().data()) != THttpURL::ParsedOK) {
+ if (Url.Parse(Header.GetUrl().data()) != THttpURL::ParsedOK) {
out << "HTTP/1.1 400 Invalid url\r\nConnection: Close\r\n\r\n";
return;
}
@@ -38,7 +38,7 @@ namespace NMonitoring {
CgiParams.Scan(Url.Get(THttpURL::FieldQuery));
} catch (...) {
out << "HTTP/1.1 500 Internal server error\r\nConnection: Close\r\n\r\n";
- YSYSLOG(TLOG_ERR, "THttpClient: internal error while serving monitoring request: %s", CurrentExceptionMessage().data());
+ YSYSLOG(TLOG_ERR, "THttpClient: internal error while serving monitoring request: %s", CurrentExceptionMessage().data());
}
if (Header.http_method == HTTP_METHOD_POST)
@@ -75,7 +75,7 @@ namespace NMonitoring {
return (HTTP_METHOD)Header.http_method;
}
void ScanPostParams() {
- PostParams.Scan(TStringBuf(PostContent.Buffer().data(), PostContent.Buffer().size()));
+ PostParams.Scan(TStringBuf(PostContent.Buffer().data(), PostContent.Buffer().size()));
}
const THttpHeaders& GetHeaders() const override {
@@ -123,7 +123,7 @@ namespace NMonitoring {
out << s.Str();
out.Finish();
} catch (...) {
- YSYSLOG(TLOG_WARNING, "TCoHttpServer::TConnection: error: %s\n", CurrentExceptionMessage().data());
+ YSYSLOG(TLOG_WARNING, "TCoHttpServer::TConnection: error: %s\n", CurrentExceptionMessage().data());
}
}
@@ -143,7 +143,7 @@ namespace NMonitoring {
try {
Listener.Bind(TIpAddress(bindAddr, port));
} catch (yexception e) {
- Y_FAIL("TCoHttpServer::TCoHttpServer: couldn't bind to %s:%d\n", bindAddr.data(), port);
+ Y_FAIL("TCoHttpServer::TCoHttpServer: couldn't bind to %s:%d\n", bindAddr.data(), port);
}
}
@@ -177,11 +177,11 @@ namespace NMonitoring {
out << "HTTP/1.1 200 Ok\nConnection: Close\n\n";
TransferData(&http_in, &out);
} catch (...) {
- YSYSLOG(TLOG_DEBUG, "TCoHttpServer: while getting data from backend: %s", CurrentExceptionMessage().data());
+ YSYSLOG(TLOG_DEBUG, "TCoHttpServer: while getting data from backend: %s", CurrentExceptionMessage().data());
}
} catch (const yexception& /*e*/) {
out << "HTTP/1.1 500 Internal server error\nConnection: Close\n\n";
- YSYSLOG(TLOG_DEBUG, "TCoHttpServer: while getting data from backend: %s", CurrentExceptionMessage().data());
+ YSYSLOG(TLOG_DEBUG, "TCoHttpServer: while getting data from backend: %s", CurrentExceptionMessage().data());
}
}