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
29
namespace
fawkes
{
30
31
class
MetricsSupplier
32
{
33
public
:
34
virtual
~MetricsSupplier
();
35
36
virtual
std::list<io::prometheus::client::MetricFamily>
metrics
() = 0;
37
};
38
39
}
// end namespace fawkes
40
41
#endif
fawkes::MetricsSupplier::metrics
virtual std::list< io::prometheus::client::MetricFamily > metrics()=0
Metrics this supplier hosts.
fawkes::MetricsSupplier::~MetricsSupplier
virtual ~MetricsSupplier()
Virtual empty destructor.
Definition:
metrics_supplier.cpp:36
fawkes::MetricsSupplier
Metrics supplier class.
Definition:
metrics_supplier.h:32
fawkes
Fawkes library namespace.
src
plugins
metrics
aspect
metrics_supplier.h
Generated by
1.8.20