mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
IcingaDB: Add affected_children
to Host/Service
Redis updates
This commit is contained in:
parent
d6b289e1cd
commit
297b62d841
@ -1482,6 +1482,11 @@ bool IcingaDB::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr& a
|
|||||||
attributes->Set("notes", checkable->GetNotes());
|
attributes->Set("notes", checkable->GetNotes());
|
||||||
attributes->Set("icon_image_alt", checkable->GetIconImageAlt());
|
attributes->Set("icon_image_alt", checkable->GetIconImageAlt());
|
||||||
|
|
||||||
|
if (size_t totalChildren (checkable->GetAllChildrenCount()); totalChildren > 0) {
|
||||||
|
// Only set the Redis key if the Checkable has actually some child dependencies.
|
||||||
|
attributes->Set("total_children", totalChildren);
|
||||||
|
}
|
||||||
|
|
||||||
attributes->Set("checkcommand_id", GetObjectIdentifier(checkable->GetCheckCommand()));
|
attributes->Set("checkcommand_id", GetObjectIdentifier(checkable->GetCheckCommand()));
|
||||||
|
|
||||||
Endpoint::Ptr commandEndpoint = checkable->GetCommandEndpoint();
|
Endpoint::Ptr commandEndpoint = checkable->GetCommandEndpoint();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user