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

Method ChangeCustomEventcommandVar

lib/icinga/externalcommandprocessor.cpp:2153–2161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2151}
2152
2153void ExternalCommandProcessor::ChangeCustomEventcommandVar(double, const std::vector<String>& arguments)
2154{
2155 EventCommand::Ptr command = EventCommand::GetByName(arguments[0]);
2156
2157 if (!command)
2158 BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot change custom var for non-existent command '" + arguments[0] + "'"));
2159
2160 ChangeCustomCommandVarInternal(command, arguments[1], arguments[2]);
2161}
2162
2163void ExternalCommandProcessor::ChangeCustomNotificationcommandVar(double, const std::vector<String>& arguments)
2164{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected