mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
Merge pull request #8966 from Icinga/feature/scheduled_by
Icinga DB: introduce icinga:history:stream:downtime#scheduled_by
This commit is contained in:
commit
dfc633074e
@ -1761,6 +1761,13 @@ void IcingaDB::SendStartedDowntime(const Downtime::Ptr& downtime)
|
|||||||
xAdd.emplace_back(GetObjectIdentifier(parent));
|
xAdd.emplace_back(GetObjectIdentifier(parent));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto scheduledBy (downtime->GetScheduledBy());
|
||||||
|
|
||||||
|
if (!scheduledBy.IsEmpty()) {
|
||||||
|
xAdd.emplace_back("scheduled_by");
|
||||||
|
xAdd.emplace_back(scheduledBy);
|
||||||
|
}
|
||||||
|
|
||||||
m_Rcon->FireAndForgetQuery(std::move(xAdd), Prio::History);
|
m_Rcon->FireAndForgetQuery(std::move(xAdd), Prio::History);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1841,6 +1848,13 @@ void IcingaDB::SendRemovedDowntime(const Downtime::Ptr& downtime)
|
|||||||
xAdd.emplace_back(GetObjectIdentifier(parent));
|
xAdd.emplace_back(GetObjectIdentifier(parent));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto scheduledBy (downtime->GetScheduledBy());
|
||||||
|
|
||||||
|
if (!scheduledBy.IsEmpty()) {
|
||||||
|
xAdd.emplace_back("scheduled_by");
|
||||||
|
xAdd.emplace_back(scheduledBy);
|
||||||
|
}
|
||||||
|
|
||||||
m_Rcon->FireAndForgetQuery(std::move(xAdd), Prio::History);
|
m_Rcon->FireAndForgetQuery(std::move(xAdd), Prio::History);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user