mirror of https://github.com/Icinga/icinga2.git
Implement Service::GetFlappingThreshold().
This commit is contained in:
parent
ff04af396b
commit
ff6383873f
|
@ -32,6 +32,14 @@ using namespace icinga;
|
|||
|
||||
#define FLAPPING_INTERVAL (30 * 60)
|
||||
|
||||
double Service::GetFlappingThreshold(void) const
|
||||
{
|
||||
if (m_FlappingThreshold.IsEmpty())
|
||||
return 30;
|
||||
else
|
||||
return m_FlappingThreshold;
|
||||
}
|
||||
|
||||
bool Service::GetEnableFlapping(void) const
|
||||
{
|
||||
if (m_EnableFlapping.IsEmpty())
|
||||
|
|
|
@ -269,6 +269,8 @@ public:
|
|||
bool GetEnableFlapping(void) const;
|
||||
void SetEnableFlapping(bool enabled);
|
||||
|
||||
double GetFlappingThreshold(void) const;
|
||||
|
||||
bool IsFlapping(void) const;
|
||||
void UpdateFlappingStatus(bool stateChange);
|
||||
|
||||
|
|
Loading…
Reference in New Issue