icinga2/lib/icinga/hostgroup.ti
Alexander A. Klimov 98cfe491b7 Don't generate a mutex for each Locked<T>, share one per object
This reduces RAM usage per object by sizeof(mutex)*(FIELDS-1).
2024-11-13 15:59:48 +01:00

29 lines
500 B
Plaintext

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#include "icinga/customvarobject.hpp"
library icinga;
namespace icinga
{
class HostGroup : CustomVarObject
{
[config] String display_name {
get {{{
String displayName = m_DisplayName.load(m_FieldsMutex);
if (displayName.IsEmpty())
return GetName();
else
return displayName;
}}}
};
[config, no_user_modify] array(name(HostGroup)) groups;
[config] String notes;
[config] String notes_url;
[config] String action_url;
};
}