mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
Checkable#UpdateNextCheck(): allow to suppress next_check listeners
This commit is contained in:
parent
a13751d972
commit
3e6ce607a2
@ -50,7 +50,7 @@ long Checkable::GetSchedulingOffset()
|
||||
return m_SchedulingOffset;
|
||||
}
|
||||
|
||||
void Checkable::UpdateNextCheck(const MessageOrigin::Ptr& origin)
|
||||
void Checkable::UpdateNextCheck(const MessageOrigin::Ptr& origin, bool suppressEvents)
|
||||
{
|
||||
double interval;
|
||||
|
||||
@ -78,7 +78,7 @@ void Checkable::UpdateNextCheck(const MessageOrigin::Ptr& origin)
|
||||
<< " (" << lastCheck << ") to next check time at "
|
||||
<< Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", nextCheck) << " (" << nextCheck << ").";
|
||||
|
||||
SetNextCheck(nextCheck, false, origin);
|
||||
SetNextCheck(nextCheck, suppressEvents, origin);
|
||||
}
|
||||
|
||||
bool Checkable::HasBeenChecked() const
|
||||
|
@ -104,7 +104,7 @@ public:
|
||||
long GetSchedulingOffset();
|
||||
void SetSchedulingOffset(long offset);
|
||||
|
||||
void UpdateNextCheck(const MessageOrigin::Ptr& origin = nullptr);
|
||||
void UpdateNextCheck(const MessageOrigin::Ptr& origin = nullptr, bool suppressEvents = false);
|
||||
|
||||
static String StateTypeToString(StateType type);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user