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

Method CustomVariableNamesAccessor

lib/livestatus/statustable.cpp:221–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221Value StatusTable::CustomVariableNamesAccessor(const Value&)
222{
223 Dictionary::Ptr vars = IcingaApplication::GetInstance()->GetVars();
224
225 ArrayData result;
226
227 if (vars) {
228 ObjectLock olock(vars);
229 for (const auto& kv : vars) {
230 result.push_back(kv.first);
231 }
232 }
233
234 return new Array(std::move(result));
235}
236
237Value StatusTable::CustomVariableValuesAccessor(const Value&)
238{

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected