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

Method DelHostComment

lib/icinga/externalcommandprocessor.cpp:1360–1367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1358}
1359
1360void ExternalCommandProcessor::DelHostComment(double, const std::vector<String>& arguments)
1361{
1362 int id = Convert::ToLong(arguments[0]);
1363 Log(LogNotice, "ExternalCommandProcessor")
1364 << "Removing comment ID " << arguments[0];
1365 String rid = Comment::GetCommentIDFromLegacyID(id);
1366 Comment::RemoveComment(rid);
1367}
1368
1369void ExternalCommandProcessor::AddSvcComment(double, const std::vector<String>& arguments)
1370{

Callers

nothing calls this directly

Calls 1

LogClass · 0.85

Tested by

no test coverage detected