| 235 | } |
| 236 | |
| 237 | Value 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 | |
| 253 | Value StatusTable::CustomVariablesAccessor(const Value&) |
| 254 | { |