Implement Service::GetFlappingThreshold().

This commit is contained in:
Gunnar Beutner 2013-07-01 14:30:19 +02:00
parent ff04af396b
commit ff6383873f
2 changed files with 10 additions and 0 deletions

View File

@ -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())

View File

@ -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);