Merge pull request #9002 from Icinga/feature/icingadb-remove-usernotification-stream

Icinga DB: remove usernotification history stream
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-10-08 19:16:26 +02:00 committed by GitHub
commit 30a5ba3961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

@ -1655,19 +1655,6 @@ void IcingaDB::SendSentNotification(
}
m_Rcon->FireAndForgetQuery(std::move(xAdd), Prio::History);
for (const User::Ptr& user : users) {
auto userId = GetObjectIdentifier(user);
std::vector<String> xAddUser ({
"XADD", "icinga:history:stream:usernotification", "*",
"id", Utility::NewUniqueID(),
"environment_id", m_EnvironmentId,
"notification_history_id", notificationHistoryId,
"user_id", GetObjectIdentifier(user),
});
m_Rcon->FireAndForgetQuery(std::move(xAddUser), Prio::History);
}
}
void IcingaDB::SendStartedDowntime(const Downtime::Ptr& downtime)