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