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

Function NotificationHandler

test/icinga-checkresult.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32static void NotificationHandler(const Checkable::Ptr& checkable, NotificationType type)
33{
34 std::cout << "Notification triggered: " << Notification::NotificationTypeToString(type) << std::endl;
35
36 checkable->SetExtension("requested_notifications", true);
37 checkable->SetExtension("notification_type", type);
38}
39
40static void CheckNotification(const Checkable::Ptr& checkable, bool expected, NotificationType type = NotificationRecovery)
41{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

SetExtensionMethod · 0.80

Tested by

no test coverage detected