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

Method DelSvcComment

lib/icinga/externalcommandprocessor.cpp:1384–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1382}
1383
1384void ExternalCommandProcessor::DelSvcComment(double, const std::vector<String>& arguments)
1385{
1386 int id = Convert::ToLong(arguments[0]);
1387 Log(LogNotice, "ExternalCommandProcessor")
1388 << "Removing comment ID " << arguments[0];
1389
1390 String rid = Comment::GetCommentIDFromLegacyID(id);
1391 Comment::RemoveComment(rid);
1392}
1393
1394void ExternalCommandProcessor::DelAllHostComments(double, const std::vector<String>& arguments)
1395{

Callers

nothing calls this directly

Calls 1

LogClass · 0.85

Tested by

no test coverage detected