mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
Merge pull request #9002 from Icinga/feature/icingadb-remove-usernotification-stream
Icinga DB: remove usernotification history stream
This commit is contained in:
commit
30a5ba3961
@ -1655,19 +1655,6 @@ void IcingaDB::SendSentNotification(
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_Rcon->FireAndForgetQuery(std::move(xAdd), Prio::History);
|
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)
|
void IcingaDB::SendStartedDowntime(const Downtime::Ptr& downtime)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user