| 219 | } |
| 220 | |
| 221 | Value 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 | |
| 237 | Value StatusTable::CustomVariableValuesAccessor(const Value&) |
| 238 | { |