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 
27 namespace fawkes {
28 class Logger;
29 class MetricsManager;
30 class WebReply;
31 class WebRequest;
32 } // namespace fawkes
33 
35 {
36 public:
38  fawkes::Logger * logger,
39  const std::string & base_url);
40 
41  virtual ~MetricsRequestProcessor();
42 
44 
45 private:
46  fawkes::MetricsManager *metrics_manager_;
47  fawkes::Logger * logger_;
48  std::string base_url_;
49 };
50 
51 #endif
MetricsRequestProcessor::~MetricsRequestProcessor
virtual ~MetricsRequestProcessor()
Destructor.
Definition: metrics_processor.cpp:61
fawkes::WebRequest
Definition: request.h:40
MetricsRequestProcessor::MetricsRequestProcessor
MetricsRequestProcessor(fawkes::MetricsManager *manager, fawkes::Logger *logger, const std::string &base_url)
Constructor.
Definition: metrics_processor.cpp:53
fawkes::Logger
Definition: logger.h:40
fawkes
MetricsRequestProcessor
Definition: metrics_processor.h:33
fawkes::MetricsManager
Definition: metrics_manager.h:34
fawkes::WebReply
Definition: reply.h:37
MetricsRequestProcessor::process_request
fawkes::WebReply * process_request(const fawkes::WebRequest *request)
Process request.
Definition: metrics_processor.cpp:70