mirror of https://github.com/Icinga/icinga2.git
35 lines
739 B
Plaintext
35 lines
739 B
Plaintext
#include "db_ido/dbquery.hpp"
|
|
#include "base/dynamicobject.hpp"
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
abstract class DbConnection : DynamicObject
|
|
{
|
|
[config] String table_prefix {
|
|
default {{{ return "icinga_"; }}}
|
|
};
|
|
|
|
[config] Dictionary::Ptr cleanup {
|
|
default {{{ return make_shared<Dictionary>(); }}}
|
|
};
|
|
|
|
[config] int categories {
|
|
default {{{
|
|
return DbCatConfig | DbCatState | DbCatAcknowledgement |
|
|
DbCatComment | DbCatDowntime | DbCatEventHandler | DbCatExternalCommand | DbCatFlapping |
|
|
DbCatLog | DbCatNotification | DbCatProgramStatus | DbCatRetention | DbCatStateHistory;
|
|
}}}
|
|
};
|
|
|
|
[config] bool enable_ha {
|
|
default {{{ return true; }}}
|
|
};
|
|
|
|
[config] double failover_timeout {
|
|
default {{{ return 60; }}}
|
|
};
|
|
};
|
|
|
|
}
|