mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 14:14:45 +02:00
Implement Service::GetFlappingThreshold().
This commit is contained in:
parent
ff04af396b
commit
ff6383873f
@ -32,6 +32,14 @@ using namespace icinga;
|
|||||||
|
|
||||||
#define FLAPPING_INTERVAL (30 * 60)
|
#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
|
bool Service::GetEnableFlapping(void) const
|
||||||
{
|
{
|
||||||
if (m_EnableFlapping.IsEmpty())
|
if (m_EnableFlapping.IsEmpty())
|
||||||
|
@ -269,6 +269,8 @@ public:
|
|||||||
bool GetEnableFlapping(void) const;
|
bool GetEnableFlapping(void) const;
|
||||||
void SetEnableFlapping(bool enabled);
|
void SetEnableFlapping(bool enabled);
|
||||||
|
|
||||||
|
double GetFlappingThreshold(void) const;
|
||||||
|
|
||||||
bool IsFlapping(void) const;
|
bool IsFlapping(void) const;
|
||||||
void UpdateFlappingStatus(bool stateChange);
|
void UpdateFlappingStatus(bool stateChange);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user