mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-25 18:48:50 +02:00
parent_affecting_logging: a config object affects everything applied to it
See the currently supported apply rules.
This commit is contained in:
parent
ddc10731a3
commit
8c3b6adaec
@ -23,13 +23,13 @@ class Dependency : CustomVarObject < DependencyNameComposer
|
|||||||
load_after Host;
|
load_after Host;
|
||||||
load_after Service;
|
load_after Service;
|
||||||
|
|
||||||
[config, no_user_modify, required, navigation(child_host)] name(Host) child_host_name {
|
[config, no_user_modify, required, navigation(child_host), parent_affecting_logging] name(Host) child_host_name {
|
||||||
navigate {{{
|
navigate {{{
|
||||||
return Host::GetByName(GetChildHostName());
|
return Host::GetByName(GetChildHostName());
|
||||||
}}}
|
}}}
|
||||||
};
|
};
|
||||||
|
|
||||||
[config, no_user_modify, navigation(child_service)] String child_service_name {
|
[config, no_user_modify, navigation(child_service), parent_affecting_logging] String child_service_name {
|
||||||
track {{{
|
track {{{
|
||||||
if (!oldValue.IsEmpty()) {
|
if (!oldValue.IsEmpty()) {
|
||||||
Service::Ptr service = Service::GetByNamePair(GetChildHostName(), oldValue);
|
Service::Ptr service = Service::GetByNamePair(GetChildHostName(), oldValue);
|
||||||
|
@ -43,12 +43,12 @@ class Notification : CustomVarObject < NotificationNameComposer
|
|||||||
[no_user_view, no_user_modify] int type_filter_real (TypeFilter);
|
[no_user_view, no_user_modify] int type_filter_real (TypeFilter);
|
||||||
[config] array(Value) states;
|
[config] array(Value) states;
|
||||||
[no_user_view, no_user_modify] int state_filter_real (StateFilter);
|
[no_user_view, no_user_modify] int state_filter_real (StateFilter);
|
||||||
[config, no_user_modify, protected, required, navigation(host)] name(Host) host_name {
|
[config, no_user_modify, protected, required, navigation(host), parent_affecting_logging] name(Host) host_name {
|
||||||
navigate {{{
|
navigate {{{
|
||||||
return Host::GetByName(GetHostName());
|
return Host::GetByName(GetHostName());
|
||||||
}}}
|
}}}
|
||||||
};
|
};
|
||||||
[config, protected, no_user_modify, navigation(service)] String service_name {
|
[config, protected, no_user_modify, navigation(service), parent_affecting_logging] String service_name {
|
||||||
track {{{
|
track {{{
|
||||||
if (!oldValue.IsEmpty()) {
|
if (!oldValue.IsEmpty()) {
|
||||||
Service::Ptr service = Service::GetByNamePair(GetHostName(), oldValue);
|
Service::Ptr service = Service::GetByNamePair(GetHostName(), oldValue);
|
||||||
|
@ -26,12 +26,12 @@ class ScheduledDowntime : CustomVarObject < ScheduledDowntimeNameComposer
|
|||||||
load_after Host;
|
load_after Host;
|
||||||
load_after Service;
|
load_after Service;
|
||||||
|
|
||||||
[config, protected, no_user_modify, required, navigation(host)] name(Host) host_name {
|
[config, protected, no_user_modify, required, navigation(host), parent_affecting_logging] name(Host) host_name {
|
||||||
navigate {{{
|
navigate {{{
|
||||||
return Host::GetByName(GetHostName());
|
return Host::GetByName(GetHostName());
|
||||||
}}}
|
}}}
|
||||||
};
|
};
|
||||||
[config, protected, no_user_modify, navigation(service)] String service_name {
|
[config, protected, no_user_modify, navigation(service), parent_affecting_logging] String service_name {
|
||||||
track {{{
|
track {{{
|
||||||
if (!oldValue.IsEmpty()) {
|
if (!oldValue.IsEmpty()) {
|
||||||
Service::Ptr service = Service::GetByNamePair(GetHostName(), oldValue);
|
Service::Ptr service = Service::GetByNamePair(GetHostName(), oldValue);
|
||||||
|
@ -40,7 +40,7 @@ class Service : Checkable < ServiceNameComposer
|
|||||||
return displayName;
|
return displayName;
|
||||||
}}}
|
}}}
|
||||||
};
|
};
|
||||||
[config, no_user_modify, required] name(Host) host_name;
|
[config, no_user_modify, required, parent_affecting_logging] name(Host) host_name;
|
||||||
[no_storage, navigation] Host::Ptr host {
|
[no_storage, navigation] Host::Ptr host {
|
||||||
get;
|
get;
|
||||||
navigate {{{
|
navigate {{{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user