2019-02-25 08:48:22 -05:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2014-10-17 13:44:31 -04:00
|
|
|
|
2014-05-25 10:23:35 -04:00
|
|
|
#include "icinga/customvarobject.hpp"
|
2013-10-26 03:41:45 -04:00
|
|
|
|
2015-08-04 08:47:44 -04:00
|
|
|
library icinga;
|
|
|
|
|
|
2013-10-26 03:41:45 -04:00
|
|
|
namespace icinga
|
|
|
|
|
{
|
|
|
|
|
|
2014-05-12 10:45:25 -04:00
|
|
|
class HostGroup : CustomVarObject
|
2013-10-26 03:41:45 -04:00
|
|
|
{
|
|
|
|
|
[config] String display_name {
|
2013-10-30 04:55:00 -04:00
|
|
|
get {{{
|
2022-05-02 10:40:29 -04:00
|
|
|
String displayName = m_DisplayName.load();
|
|
|
|
|
if (displayName.IsEmpty())
|
2013-10-30 04:55:00 -04:00
|
|
|
return GetName();
|
|
|
|
|
else
|
2022-05-02 10:40:29 -04:00
|
|
|
return displayName;
|
2013-10-30 04:55:00 -04:00
|
|
|
}}}
|
2013-10-26 03:41:45 -04:00
|
|
|
};
|
2014-04-14 14:59:41 -04:00
|
|
|
|
2015-10-20 02:20:35 -04:00
|
|
|
[config, no_user_modify] array(name(HostGroup)) groups;
|
2014-04-24 08:48:57 -04:00
|
|
|
[config] String notes;
|
|
|
|
|
[config] String notes_url;
|
|
|
|
|
[config] String action_url;
|
2013-10-26 03:41:45 -04:00
|
|
|
};
|
|
|
|
|
|
2013-10-30 04:55:00 -04:00
|
|
|
}
|