1 #include "base/configobject.hpp"
8 class ElasticsearchWriter : ConfigObject
10 activation_priority 100;
12 [config, required] String host {
13 default {{{ return "127.0.0.1"; }}}
15 [config, required] String port {
16 default {{{ return "9200"; }}}
18 [config, required] String index {
19 default {{{ return "icinga2"; }}}
21 [config] bool enable_send_perfdata {
22 default {{{ return false; }}}
24 [config] String username;
25 [config] String password;
27 [config] bool enable_tls {
28 default {{{ return false; }}}
30 [config] String ca_path;
31 [config] String cert_path;
32 [config] String key_path;
34 [config] int flush_interval {
35 default {{{ return 10; }}}
37 [config] int flush_threshold {
38 default {{{ return 1024; }}}
40 [config] bool enable_ha {
41 default {{{ return false; }}}