]> granicus.if.org Git - icinga2/blob - lib/perfdata/elasticsearchwriter.ti
Merge pull request #7124 from Icinga/bugfix/namespace-thread-safe
[icinga2] / lib / perfdata / elasticsearchwriter.ti
1 #include "base/configobject.hpp"
2
3 library perfdata;
4
5 namespace icinga
6 {
7
8 class ElasticsearchWriter : ConfigObject
9 {
10         activation_priority 100;
11
12         [config, required] String host {
13                 default {{{ return "127.0.0.1"; }}}
14         };
15         [config, required] String port {
16                 default {{{ return "9200"; }}}
17         };
18         [config, required] String index {
19                 default {{{ return "icinga2"; }}}
20         };
21         [config] bool enable_send_perfdata {
22                 default {{{ return false; }}}
23         };
24         [config] String username;
25         [config] String password;
26
27         [config] bool enable_tls {
28                 default {{{ return false; }}}
29         };
30         [config] String ca_path;
31         [config] String cert_path;
32         [config] String key_path;
33
34         [config] int flush_interval {
35                 default {{{ return 10; }}}
36         };
37         [config] int flush_threshold {
38                 default {{{ return 1024; }}}
39         };
40         [config] bool enable_ha {
41                 default {{{ return false; }}}
42         };
43 };
44
45 }