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

Method CustomVariableValuesAccessor

lib/livestatus/statustable.cpp:237–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237Value StatusTable::CustomVariableValuesAccessor(const Value&)
238{
239 Dictionary::Ptr vars = IcingaApplication::GetInstance()->GetVars();
240
241 ArrayData result;
242
243 if (vars) {
244 ObjectLock olock(vars);
245 for (const auto& kv : vars) {
246 result.push_back(kv.second);
247 }
248 }
249
250 return new Array(std::move(result));
251}
252
253Value StatusTable::CustomVariablesAccessor(const Value&)
254{

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected