mirror of https://github.com/Icinga/icinga2.git
parent
d53fced691
commit
3899601744
|
@ -43,6 +43,8 @@ boost::signals2::signal<void (const Checkable::Ptr&, bool, const MessageOrigin&)
|
|||
boost::signals2::signal<void (const Checkable::Ptr&, bool, const MessageOrigin&)> Checkable::OnEnablePassiveChecksChanged;
|
||||
boost::signals2::signal<void (const Checkable::Ptr&, bool, const MessageOrigin&)> Checkable::OnEnableNotificationsChanged;
|
||||
boost::signals2::signal<void (const Checkable::Ptr&, bool, const MessageOrigin&)> Checkable::OnEnableFlappingChanged;
|
||||
boost::signals2::signal<void (const Checkable::Ptr&, double, const MessageOrigin&)> Checkable::OnCheckIntervalChanged;
|
||||
boost::signals2::signal<void (const Checkable::Ptr&, double, const MessageOrigin&)> Checkable::OnRetryIntervalChanged;
|
||||
boost::signals2::signal<void (const Checkable::Ptr&, FlappingState)> Checkable::OnFlappingChanged;
|
||||
|
||||
CheckCommand::Ptr Checkable::GetCheckCommand(void) const
|
||||
|
@ -87,9 +89,11 @@ double Checkable::GetCheckInterval(void) const
|
|||
return GetCheckIntervalRaw();
|
||||
}
|
||||
|
||||
void Checkable::SetCheckInterval(double interval)
|
||||
void Checkable::SetCheckInterval(double interval, const MessageOrigin& origin)
|
||||
{
|
||||
SetOverrideCheckInterval(interval);
|
||||
|
||||
OnCheckIntervalChanged(GetSelf(), interval, origin);
|
||||
}
|
||||
|
||||
double Checkable::GetRetryInterval(void) const
|
||||
|
@ -100,9 +104,11 @@ double Checkable::GetRetryInterval(void) const
|
|||
return GetRetryIntervalRaw();
|
||||
}
|
||||
|
||||
void Checkable::SetRetryInterval(double interval)
|
||||
void Checkable::SetRetryInterval(double interval, const MessageOrigin& origin)
|
||||
{
|
||||
SetOverrideRetryInterval(interval);
|
||||
|
||||
OnRetryIntervalChanged(GetSelf(), interval, origin);
|
||||
}
|
||||
|
||||
void Checkable::SetSchedulingOffset(long offset)
|
||||
|
|
|
@ -104,10 +104,10 @@ public:
|
|||
void SetCheckPeriod(const TimePeriod::Ptr& tp);
|
||||
|
||||
double GetCheckInterval(void) const;
|
||||
void SetCheckInterval(double interval);
|
||||
void SetCheckInterval(double interval, const MessageOrigin& origin = MessageOrigin());
|
||||
|
||||
double GetRetryInterval(void) const;
|
||||
void SetRetryInterval(double interval);
|
||||
void SetRetryInterval(double interval, const MessageOrigin& origin = MessageOrigin());
|
||||
|
||||
int GetMaxCheckAttempts(void) const;
|
||||
void SetMaxCheckAttempts(int attempts);
|
||||
|
@ -155,6 +155,8 @@ public:
|
|||
static boost::signals2::signal<void (const Checkable::Ptr&, bool, const MessageOrigin&)> OnEnablePerfdataChanged;
|
||||
|
||||
static boost::signals2::signal<void (const Checkable::Ptr&, bool, const MessageOrigin&)> OnEnableEventHandlerChanged;
|
||||
static boost::signals2::signal<void (const Checkable::Ptr&, double, const MessageOrigin&)> OnCheckIntervalChanged;
|
||||
static boost::signals2::signal<void (const Checkable::Ptr&, double, const MessageOrigin&)> OnRetryIntervalChanged;
|
||||
|
||||
static boost::signals2::signal<void (const Checkable::Ptr&, const CheckResult::Ptr&, const MessageOrigin&)> OnNewCheckResult;
|
||||
static boost::signals2::signal<void (const Checkable::Ptr&, const CheckResult::Ptr&, StateType, const MessageOrigin&)> OnStateChange;
|
||||
|
|
Loading…
Reference in New Issue