Fawkes API Fawkes Development Version
metrics_supplier.h
1
2/***************************************************************************
3 * metrics_supplier.h - Metrics supplier interface
4 *
5 * Created: Sat May 06 20:15:05 2017 (German Open 2017)
6 * Copyright 2017 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_ASPECT_METRICS_SUPPLIER_H_
23#define _PLUGINS_METRICS_ASPECT_METRICS_SUPPLIER_H_
24
25#include <plugins/metrics/protobuf/metrics.pb.h>
26
27#include <list>
28
29namespace fawkes {
30
32{
33public:
34 virtual ~MetricsSupplier();
35
36 virtual std::list<io::prometheus::client::MetricFamily> metrics() = 0;
37};
38
39} // end namespace fawkes
40
41#endif
Metrics supplier class.
virtual std::list< io::prometheus::client::MetricFamily > metrics()=0
Metrics this supplier hosts.
virtual ~MetricsSupplier()
Virtual empty destructor.
Fawkes library namespace.