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

Method ChangeCustomNotificationcommandVar

lib/icinga/externalcommandprocessor.cpp:2163–2171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2161}
2162
2163void ExternalCommandProcessor::ChangeCustomNotificationcommandVar(double, const std::vector<String>& arguments)
2164{
2165 NotificationCommand::Ptr command = NotificationCommand::GetByName(arguments[0]);
2166
2167 if (!command)
2168 BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot change custom var for non-existent command '" + arguments[0] + "'"));
2169
2170 ChangeCustomCommandVarInternal(command, arguments[1], arguments[2]);
2171}
2172
2173void ExternalCommandProcessor::ChangeCustomCommandVarInternal(const Command::Ptr& command, const String& name, const Value& value)
2174{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected