#include "html_mon_page.h"
#include
using namespace NMonitoring;
void THtmlMonPage::Output(NMonitoring::IMonHttpRequest& request) {
IOutputStream& out = request.Output();
out << HTTPOKHTML;
HTML(out) {
out << "\n";
HTML_TAG() {
HEAD() {
if (!!Title) {
out << "" << Title << "\n";
}
out << "\n";
out << "\n";
out << "\n";
if (OutputTableSorterJsCss) {
out << "\n";
out << "\n";
}
out << "\n";
}
BODY() {
OutputNavBar(out);
DIV_CLASS("container") {
if (!!Title) {
out << "
" << Title << "
";
}
OutputContent(request);
}
}
}
}
}
void THtmlMonPage::NotFound(NMonitoring::IMonHttpRequest& request) const {
IOutputStream& out = request.Output();
out << HTTPNOTFOUND;
out.Flush();
}
void THtmlMonPage::NoContent(NMonitoring::IMonHttpRequest& request) const {
IOutputStream& out = request.Output();
out << HTTPNOCONTENT;
out.Flush();
}