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

Method SendCommandArgumentsChanged

lib/icingadb/icingadb-objects.cpp:2761–2776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2759}
2760
2761void IcingaDB::SendCommandArgumentsChanged(
2762 const ConfigObject::Ptr& command,
2763 const CmdArgEnvRedisKeys& cmdRedisKeys,
2764 const Dictionary::Ptr& oldValues,
2765 const Dictionary::Ptr& newValues
2766)
2767{
2768 if (!m_RconWorker || !m_RconWorker->IsConnected() || oldValues == newValues) {
2769 return;
2770 }
2771
2772 for (const auto& argumentKey : GetDictionaryDeletedKeys(oldValues, newValues)) {
2773 String id = HashValue(new Array({m_EnvironmentId, argumentKey, command->GetName()}));
2774 EnqueueRelationsDeletion(id, {{cmdRedisKeys.ArgObjectKey, cmdRedisKeys.ArgChecksumKey}});
2775 }
2776}
2777
2778void IcingaDB::SendCustomVarsChanged(const ConfigObject::Ptr& object, const Dictionary::Ptr& oldValues, const Dictionary::Ptr& newValues) {
2779 const auto& type = object->GetReflectionType();

Callers 1

Calls 2

IsConnectedMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected