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

Method MakeName

lib/icinga/service.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17boost::signals2::signal<void (const Service::Ptr&, const CheckResult::Ptr&, const MessageOrigin::Ptr&)> Service::OnHostProblemChanged;
18
19String ServiceNameComposer::MakeName(const String& shortName, const Object::Ptr& context) const
20{
21 Service::Ptr service = dynamic_pointer_cast<Service>(context);
22
23 if (!service)
24 return "";
25
26 return service->GetHostName() + "!" + shortName;
27}
28
29Dictionary::Ptr ServiceNameComposer::ParseName(const String& name) const
30{

Callers 2

NewObjectMethod · 0.45
CommitMethod · 0.45

Calls 1

GetHostNameMethod · 0.80

Tested by

no test coverage detected