mirror of https://github.com/Icinga/icinga2.git
36 lines
618 B
Plaintext
36 lines
618 B
Plaintext
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
|
|
|
#include "perfdata/influxdbcommonwriter.hpp"
|
|
|
|
library perfdata;
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
class InfluxdbWriter : InfluxdbCommonWriter
|
|
{
|
|
activation_priority 100;
|
|
|
|
[config, required] String database {
|
|
default {{{ return "icinga2"; }}}
|
|
};
|
|
[config] String username {
|
|
default {{{ return ""; }}}
|
|
};
|
|
[config, no_user_view] String password {
|
|
default {{{ return ""; }}}
|
|
};
|
|
[config, no_user_view] Dictionary::Ptr basic_auth;
|
|
};
|
|
|
|
validator InfluxdbWriter {
|
|
Dictionary basic_auth {
|
|
required username;
|
|
String username;
|
|
required password;
|
|
String password;
|
|
};
|
|
};
|
|
|
|
}
|