icinga2/lib/perfdata/influxdbwriter.hpp

32 lines
638 B
C++
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#ifndef INFLUXDBWRITER_H
#define INFLUXDBWRITER_H
2018-01-18 13:50:38 +01:00
#include "perfdata/influxdbwriter-ti.hpp"
namespace icinga
{
/**
* An Icinga InfluxDB v1 writer.
*
* @ingroup perfdata
*/
2018-01-04 06:11:04 +01:00
class InfluxdbWriter final : public ObjectImpl<InfluxdbWriter>
{
public:
DECLARE_OBJECT(InfluxdbWriter);
DECLARE_OBJECTNAME(InfluxdbWriter);
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 /* INFLUXDBWRITER_H */