| 1455 | } |
| 1456 | |
| 1457 | void ExternalCommandProcessor::DelayHostNotification(double, const std::vector<String>& arguments) |
| 1458 | { |
| 1459 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 1460 | |
| 1461 | if (!host) |
| 1462 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot delay host notification for non-existent host '" + arguments[0] + "'")); |
| 1463 | |
| 1464 | Log(LogNotice, "ExternalCommandProcessor") |
| 1465 | << "Delaying notifications for host '" << host->GetName() << "'"; |
| 1466 | |
| 1467 | for (const Notification::Ptr& notification : host->GetNotifications()) { |
| 1468 | notification->SetNextNotification(Convert::ToDouble(arguments[1])); |
| 1469 | } |
| 1470 | } |
| 1471 | |
| 1472 | void ExternalCommandProcessor::DelaySvcNotification(double, const std::vector<String>& arguments) |
| 1473 | { |
nothing calls this directly
no test coverage detected