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

Method AddObjectDataToRuntimeUpdates

lib/icingadb/icingadb-objects.cpp:1436–1444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1434}
1435
1436void IcingaDB::AddObjectDataToRuntimeUpdates(std::vector<Dictionary::Ptr>& runtimeUpdates,
1437 String objectKey, String redisKey, const Dictionary::Ptr& data)
1438{
1439 Dictionary::Ptr dataClone = data->ShallowClone();
1440 dataClone->Set("id", std::move(objectKey));
1441 dataClone->Set("redis_key", std::move(redisKey));
1442 dataClone->Set("runtime_type", "upsert");
1443 runtimeUpdates.emplace_back(dataClone);
1444}
1445
1446// Takes object and collects IcingaDB relevant attributes and computes checksums. Returns whether the object is relevant
1447// for IcingaDB.

Callers

nothing calls this directly

Calls 2

ShallowCloneMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected