Module: Procmon
- Defined in:
- lib/procmon/dsl.rb,
lib/procmon/system.rb,
lib/procmon/process.rb,
lib/procmon/version.rb,
lib/procmon/notifiers/email.rb,
lib/procmon/notifiers/notifier.rb,
lib/procmon/process_conditions.rb,
lib/procmon/dsl/process_factory.rb,
lib/procmon/process_notification.rb,
lib/procmon/process_conditions/cpu_usage.rb,
lib/procmon/process_conditions/mem_usage.rb,
lib/procmon/process_conditions/process_health.rb,
lib/procmon/process_conditions/process_condition.rb
Defined Under Namespace
Modules: Notifiers, ProcessConditions, System Classes: Process, ProcessFactory, ProcessNotification
Constant Summary collapse
- VERSION =
"0.0.6".freeze
Class Method Summary collapse
Class Method Details
.process(proc_name, options = {}, &block) ⇒ Object
2 3 4 5 6 |
# File 'lib/procmon/dsl.rb', line 2 def self.process(proc_name, = {}, &block) proc_fact = ProcessFactory.new(proc_name, , block) process = proc_fact.create_process process.run_checks end |