MCPcopy Create free account
hub / github.com/Icinga/icinga2 / FindTargets

Method FindTargets

lib/remote/templatequeryhandler.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 void FindTargets(const String& type,
41 const std::function<void (const Value&)>& addTarget) const override
42 {
43 Type::Ptr ptype = Type::GetByName(type);
44
45 for (const ConfigItem::Ptr& item : ConfigItem::GetItems(ptype)) {
46 if (item->IsAbstract())
47 addTarget(GetTargetForTemplate(item));
48 }
49 }
50
51 Value GetTargetByName(const String& type, const String& name) const override
52 {

Callers

nothing calls this directly

Calls 2

GetTargetForTemplateFunction · 0.85
IsAbstractMethod · 0.45

Tested by

no test coverage detected