mirror of https://github.com/Icinga/icinga2.git
Add missing validator for flapping_threshold.
This commit is contained in:
parent
e2714525c9
commit
ff04af396b
|
@ -59,6 +59,8 @@ type Host {
|
||||||
%attribute number "notification_interval",
|
%attribute number "notification_interval",
|
||||||
%attribute name(TimePeriod) "notification_period",
|
%attribute name(TimePeriod) "notification_period",
|
||||||
|
|
||||||
|
%attribute number "flapping_threshold",
|
||||||
|
|
||||||
%attribute array "servicegroups" {
|
%attribute array "servicegroups" {
|
||||||
%attribute name(ServiceGroup) "*"
|
%attribute name(ServiceGroup) "*"
|
||||||
},
|
},
|
||||||
|
@ -143,6 +145,8 @@ type Host {
|
||||||
%attribute number "notification_interval",
|
%attribute number "notification_interval",
|
||||||
%attribute name(TimePeriod) "notification_period",
|
%attribute name(TimePeriod) "notification_period",
|
||||||
|
|
||||||
|
%attribute number "flapping_threshold",
|
||||||
|
|
||||||
%attribute number "notification_type_filter",
|
%attribute number "notification_type_filter",
|
||||||
%attribute number "notification_state_filter",
|
%attribute number "notification_state_filter",
|
||||||
|
|
||||||
|
@ -199,6 +203,8 @@ type Service {
|
||||||
%attribute number "notification_interval",
|
%attribute number "notification_interval",
|
||||||
%attribute name(TimePeriod) "notification_period",
|
%attribute name(TimePeriod) "notification_period",
|
||||||
|
|
||||||
|
%attribute number "flapping_threshold",
|
||||||
|
|
||||||
%attribute array "hostdependencies" {
|
%attribute array "hostdependencies" {
|
||||||
%attribute name(Host) "*"
|
%attribute name(Host) "*"
|
||||||
},
|
},
|
||||||
|
|
|
@ -91,7 +91,7 @@ Service::Service(const Dictionary::Ptr& serializedObject)
|
||||||
RegisterAttribute("flapping_negative", Attribute_Replicated, &m_FlappingNegative);
|
RegisterAttribute("flapping_negative", Attribute_Replicated, &m_FlappingNegative);
|
||||||
RegisterAttribute("flapping_lastchange", Attribute_Replicated, &m_FlappingLastChange);
|
RegisterAttribute("flapping_lastchange", Attribute_Replicated, &m_FlappingLastChange);
|
||||||
RegisterAttribute("flapping_threshold", Attribute_Config, &m_FlappingThreshold);
|
RegisterAttribute("flapping_threshold", Attribute_Config, &m_FlappingThreshold);
|
||||||
RegisterAttribute("enable_flapping", Attribute_Config, &m_EnableFlapping);
|
RegisterAttribute("enable_flapping", Attribute_Replicated, &m_EnableFlapping);
|
||||||
|
|
||||||
SetSchedulingOffset(rand());
|
SetSchedulingOffset(rand());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue