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

Method GetTargetByName

lib/remote/filterutility.cpp:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162Value ConfigObjectTargetProvider::GetTargetByName(const String& type, const String& name) const
163{
164 ConfigObject::Ptr obj = ConfigObject::GetObject(type, name);
165
166 if (!obj)
167 BOOST_THROW_EXCEPTION(std::invalid_argument("Object does not exist."));
168
169 return obj;
170}
171
172bool ConfigObjectTargetProvider::IsValidType(const String& type) const
173{

Callers 1

GetFilterTargetsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected