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

Method ActionUrlExpandedAccessor

lib/livestatus/hoststable.cpp:357–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357Value HostsTable::ActionUrlExpandedAccessor(const Value& row)
358{
359 Host::Ptr host = static_cast<Host::Ptr>(row);
360
361 if (!host)
362 return Empty;
363
364 MacroProcessor::ResolverList resolvers {
365 { "host", host },
366 };
367
368 return MacroProcessor::ResolveMacros(host->GetActionUrl(), resolvers);
369}
370
371Value HostsTable::PluginOutputAccessor(const Value& row)
372{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected