2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2014-10-17 19:44:31 +02:00
|
|
|
|
2015-08-15 20:28:05 +02:00
|
|
|
#include "base/configobject.hpp"
|
2013-10-26 09:41:45 +02:00
|
|
|
|
2015-08-04 14:47:44 +02:00
|
|
|
library remote;
|
|
|
|
|
2013-10-26 09:41:45 +02:00
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2015-08-15 20:28:05 +02:00
|
|
|
class Endpoint : ConfigObject
|
2013-10-26 09:41:45 +02:00
|
|
|
{
|
2016-08-16 13:53:45 +02:00
|
|
|
load_after Zone;
|
|
|
|
|
2013-10-26 09:41:45 +02:00
|
|
|
[config] String host;
|
2015-08-25 17:06:08 +02:00
|
|
|
[config, required] String port {
|
2014-05-03 20:02:22 +02:00
|
|
|
default {{{ return "5665"; }}}
|
|
|
|
};
|
|
|
|
[config] double log_duration {
|
|
|
|
default {{{ return 86400; }}}
|
|
|
|
};
|
2013-10-26 09:41:45 +02:00
|
|
|
|
2016-06-21 11:29:12 +02:00
|
|
|
[state] Timestamp local_log_position;
|
|
|
|
[state] Timestamp remote_log_position;
|
2013-10-26 09:41:45 +02:00
|
|
|
|
2015-10-20 08:20:35 +02:00
|
|
|
[no_user_modify] bool connecting;
|
|
|
|
[no_user_modify] bool syncing;
|
2015-10-22 10:52:38 +02:00
|
|
|
|
|
|
|
[no_user_modify, no_storage] bool connected {
|
|
|
|
get;
|
|
|
|
};
|
2017-11-13 16:30:29 +01:00
|
|
|
|
|
|
|
Timestamp last_message_sent;
|
|
|
|
Timestamp last_message_received;
|
|
|
|
|
|
|
|
[no_user_modify, no_storage] double messages_sent_per_second {
|
|
|
|
get;
|
|
|
|
};
|
|
|
|
|
|
|
|
[no_user_modify, no_storage] double messages_received_per_second {
|
|
|
|
get;
|
|
|
|
};
|
|
|
|
|
|
|
|
[no_user_modify, no_storage] double bytes_sent_per_second {
|
|
|
|
get;
|
|
|
|
};
|
|
|
|
|
|
|
|
[no_user_modify, no_storage] double bytes_received_per_second {
|
|
|
|
get;
|
|
|
|
};
|
2013-10-26 09:41:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|