Fawkes API Fawkes Development Version
metrics_processor.h
1
2/***************************************************************************
3 * metrics_processor.h - Metrics exporter
4 *
5 * Created: Sat May 06 19:46:38 2017 (German Open 2017)
6 * Copyright 2017-2018 Tim Niemueller [www.niemueller.de]
7 ****************************************************************************/
8
9/* This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Library General Public License for more details.
18 *
19 * Read the full text in the LICENSE.GPL file in the doc directory.
20 */
21
22#ifndef _PLUGINS_METRICS_METRICS_PROCESSOR_H_
23#define _PLUGINS_METRICS_METRICS_PROCESSOR_H_
24
25#include "protobuf/metrics.pb.h"
26
27namespace fawkes {
28class Logger;
29class MetricsManager;
30class WebReply;
31class WebRequest;
32} // namespace fawkes
33
35{
36public:
38 fawkes::Logger * logger,
39 const std::string & base_url);
40
42
44
45private:
46 fawkes::MetricsManager *metrics_manager_;
47 fawkes::Logger * logger_;
48 std::string base_url_;
49};
50
51#endif
Metrics web request processor.
virtual ~MetricsRequestProcessor()
Destructor.
fawkes::WebReply * process_request(const fawkes::WebRequest *request)
Process request.
MetricsRequestProcessor(fawkes::MetricsManager *manager, fawkes::Logger *logger, const std::string &base_url)
Constructor.
Interface for logging.
Definition: logger.h:42
Base class for metrics managers.
Basic web reply.
Definition: reply.h:34
Web request meta data carrier.
Definition: request.h:42
Fawkes library namespace.