| 2670 | } |
| 2671 | |
| 2672 | void IcingaDB::SendTimePeriodRangesChanged(const TimePeriod::Ptr& timeperiod, const Dictionary::Ptr& oldValues, const Dictionary::Ptr& newValues) { |
| 2673 | if (!m_RconWorker || !m_RconWorker->IsConnected() || oldValues == newValues) { |
| 2674 | return; |
| 2675 | } |
| 2676 | |
| 2677 | std::vector<String> deletedKeys = GetDictionaryDeletedKeys(oldValues, newValues); |
| 2678 | |
| 2679 | for (const auto& rangeKey : deletedKeys) { |
| 2680 | String id = HashValue(new Array({m_EnvironmentId, rangeKey, oldValues->Get(rangeKey), timeperiod->GetName()})); |
| 2681 | EnqueueRelationsDeletion(id, {{CONFIG_REDIS_KEY_PREFIX "timeperiod:range", ""}}); |
| 2682 | } |
| 2683 | } |
| 2684 | |
| 2685 | void IcingaDB::SendTimePeriodIncludesChanged(const TimePeriod::Ptr& timeperiod, const Array::Ptr& oldValues, const Array::Ptr& newValues) { |
| 2686 | if (!m_RconWorker || !m_RconWorker->IsConnected() || oldValues == newValues) { |
no test coverage detected