mirror of https://github.com/Icinga/icinga2.git
Added freshness_interval config setting.
This commit is contained in:
parent
a1423371d0
commit
9a0cae862a
|
@ -84,6 +84,15 @@ long Service::GetRetryInterval(void) const
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long Service::GetFreshnessInterval(void) const
|
||||||
|
{
|
||||||
|
long value;
|
||||||
|
if (!GetConfigObject()->GetProperty("freshness_interval", &value));
|
||||||
|
value = GetCheckInterval() * 3;
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
Dictionary::Ptr Service::GetDependencies(void) const
|
Dictionary::Ptr Service::GetDependencies(void) const
|
||||||
{
|
{
|
||||||
Dictionary::Ptr value;
|
Dictionary::Ptr value;
|
||||||
|
|
|
@ -40,6 +40,7 @@ public:
|
||||||
long GetMaxCheckAttempts(void) const;
|
long GetMaxCheckAttempts(void) const;
|
||||||
long GetCheckInterval(void) const;
|
long GetCheckInterval(void) const;
|
||||||
long GetRetryInterval(void) const;
|
long GetRetryInterval(void) const;
|
||||||
|
long GetFreshnessInterval(void) const;
|
||||||
Dictionary::Ptr GetDependencies(void) const;
|
Dictionary::Ptr GetDependencies(void) const;
|
||||||
Dictionary::Ptr GetGroups(void) const;
|
Dictionary::Ptr GetGroups(void) const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue