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

Method FetchRows

lib/livestatus/commandstable.cpp:44–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void CommandsTable::FetchRows(const AddRowFunction& addRowFn)
45{
46 for (auto& object : ConfigType::GetObjectsByType<CheckCommand>()) {
47 if (!addRowFn(object, LivestatusGroupByNone, Empty))
48 return;
49 }
50
51 for (auto& object : ConfigType::GetObjectsByType<EventCommand>()) {
52 if (!addRowFn(object, LivestatusGroupByNone, Empty))
53 return;
54 }
55
56 for (auto& object : ConfigType::GetObjectsByType<NotificationCommand>()) {
57 if (!addRowFn(object, LivestatusGroupByNone, Empty))
58 return;
59 }
60}
61
62Value CommandsTable::NameAccessor(const Value& row)
63{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected