blob: 3b20f8b9dec73b89c3506d352ef9d34f3dbe40a8 (
plain)
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
28
29
30
31
32
33
|
/* Icinga 2 | (c) 2021 Icinga GmbH | GPLv2+ */
#ifndef INFLUXDB2WRITER_H
#define INFLUXDB2WRITER_H
#include "perfdata/influxdb2writer-ti.hpp"
#include <boost/beast/http/message.hpp>
#include <boost/beast/http/string_body.hpp>
namespace icinga
{
/**
* An Icinga InfluxDB v2 writer.
*
* @ingroup perfdata
*/
class Influxdb2Writer final : public ObjectImpl<Influxdb2Writer>
{
public:
DECLARE_OBJECT(Influxdb2Writer);
DECLARE_OBJECTNAME(Influxdb2Writer);
static void StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata);
protected:
boost::beast::http::request<boost::beast::http::string_body> AssembleRequest(String body) override;
Url::Ptr AssembleUrl() override;
};
}
#endif /* INFLUXDB2WRITER_H */
|