aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/service/pages/pre_mon_page.h
blob: c9a923d39acd4893e28898d3eb332127ba6f639f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "html_mon_page.h"

namespace NMonitoring {
    struct TPreMonPage: public THtmlMonPage {
        TPreMonPage(const TString& path,
                    const TString& title = TString(),
                    bool preTag = true,
                    bool outputTableSorterJsCss = false)
            : THtmlMonPage(path, title, outputTableSorterJsCss)
            , PreTag(preTag)
        {
        }

        void OutputContent(NMonitoring::IMonHttpRequest& request) override;

        // hook to customize output
        virtual void BeforePre(NMonitoring::IMonHttpRequest& request);

        // put your text here
        virtual void OutputText(IOutputStream& out, NMonitoring::IMonHttpRequest&) = 0;

        const bool PreTag;
    };

}