lib/eye/patch/process_set.rb in eye-patch-0.4.0 vs lib/eye/patch/process_set.rb in eye-patch-0.4.1

- old
+ new

@@ -39,9 +39,18 @@ .merge(config) .merge(name: name, group: @group[:name]) self[name][:triggers] = self[name][:triggers].merge(monitors[:triggers]) self[name][:checks] = self[name][:checks].merge(monitors[:checks]) + + return unless config[:monitor_children] + return unless config[:monitor_children][:checks] + + monitor_options = OptionSet.new( + Eye::Checker, + config[:monitor_children][:checks]) + + self[name][:monitor_children][:checks] = monitor_options end def indexed_config(config, index) config.each_with_object({}) do |(key, value), result| result[key] = value.is_a?(String) ? value.gsub("{ID}", index.to_s) : value