mirror of https://github.com/Icinga/icinga2.git
31 lines
581 B
Plaintext
31 lines
581 B
Plaintext
#include "icinga/customvarobject.hpp"
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
code {{{
|
|
class I2_ICINGA_API ScheduledDowntimeNameComposer : public NameComposer
|
|
{
|
|
public:
|
|
virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
|
|
};
|
|
}}}
|
|
|
|
class ScheduledDowntime : CustomVarObject < ScheduledDowntimeNameComposer
|
|
{
|
|
[config, protected] String host_name;
|
|
[config, protected] String service_name;
|
|
|
|
[config] String author;
|
|
[config] String comment;
|
|
|
|
[config] double duration;
|
|
[config] bool fixed {
|
|
default {{{ return true; }}}
|
|
};
|
|
|
|
[config] Dictionary::Ptr ranges;
|
|
};
|
|
|
|
}
|