summaryrefslogtreecommitdiffstats
path: root/lib/perfdata/influxdbwriter.ti
blob: e6fc84e5c0fa30bc4a6749bf831aa8e362dc7fbc (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
34
35
/* 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;
	};
};

}