icinga2/lib/remote/endpoint.ti

56 lines
990 B
Plaintext
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#include "base/configobject.hpp"
2013-10-26 09:41:45 +02:00
library remote;
2013-10-26 09:41:45 +02:00
namespace icinga
{
class Endpoint : ConfigObject
2013-10-26 09:41:45 +02:00
{
load_after Zone;
2013-10-26 09:41:45 +02:00
[config] String host;
[config, required] String port {
default {{{ return "5665"; }}}
};
[config] double log_duration {
default {{{ return 86400; }}}
};
2013-10-26 09:41:45 +02:00
[state] Timestamp local_log_position;
[state] Timestamp remote_log_position;
[state] "unsigned long" icinga_version {
default {{{ return 0; }}}
};
2013-10-26 09:41:45 +02:00
[no_user_modify] bool connecting;
[no_user_modify] bool syncing;
[no_user_modify, no_storage] bool connected {
get;
};
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
};
}