Add missing validator for flapping_threshold.

This commit is contained in:
Gunnar Beutner 2013-07-01 14:09:54 +02:00
parent e2714525c9
commit ff04af396b
2 changed files with 7 additions and 1 deletions

View File

@ -59,6 +59,8 @@ type Host {
%attribute number "notification_interval",
%attribute name(TimePeriod) "notification_period",
%attribute number "flapping_threshold",
%attribute array "servicegroups" {
%attribute name(ServiceGroup) "*"
},
@ -143,6 +145,8 @@ type Host {
%attribute number "notification_interval",
%attribute name(TimePeriod) "notification_period",
%attribute number "flapping_threshold",
%attribute number "notification_type_filter",
%attribute number "notification_state_filter",
@ -199,6 +203,8 @@ type Service {
%attribute number "notification_interval",
%attribute name(TimePeriod) "notification_period",
%attribute number "flapping_threshold",
%attribute array "hostdependencies" {
%attribute name(Host) "*"
},

View File

@ -91,7 +91,7 @@ Service::Service(const Dictionary::Ptr& serializedObject)
RegisterAttribute("flapping_negative", Attribute_Replicated, &m_FlappingNegative);
RegisterAttribute("flapping_lastchange", Attribute_Replicated, &m_FlappingLastChange);
RegisterAttribute("flapping_threshold", Attribute_Config, &m_FlappingThreshold);
RegisterAttribute("enable_flapping", Attribute_Config, &m_EnableFlapping);
RegisterAttribute("enable_flapping", Attribute_Replicated, &m_EnableFlapping);
SetSchedulingOffset(rand());