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