mirror of https://github.com/Icinga/icinga2.git
18 lines
334 B
Plaintext
18 lines
334 B
Plaintext
#include "icinga/customvarobject.hpp"
|
|
#include "base/application.hpp"
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
class IcingaStatusWriter : CustomVarObject
|
|
{
|
|
[config] String status_path {
|
|
default {{{ return Application::GetLocalStateDir() + "/cache/icinga2/status.json"; }}}
|
|
};
|
|
[config] double update_interval {
|
|
default {{{ return 15; }}}
|
|
};
|
|
};
|
|
|
|
}
|