Class: Ansible::Ruby::Modules::Monit

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/monitoring/monit.rb

Overview

Manage the state of a program monitored via I(Monit)

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#nameString

Returns The name of the I(monit) program/process to manage.

Returns:

  • (String)

    The name of the I(monit) program/process to manage



12
# File 'lib/ansible/ruby/modules/generated/monitoring/monit.rb', line 12

attribute :name

#state:present, ...

Returns The state of service.

Returns:

  • (:present, :started, :stopped, :restarted, :monitored, :unmonitored, :reloaded)

    The state of service



16
# File 'lib/ansible/ruby/modules/generated/monitoring/monit.rb', line 16

attribute :state

#timeoutInteger?

Returns If there are pending actions for the service monitored by monit, then Ansible will check for up to this many seconds to verify the requested action has been performed. Ansible will sleep for five seconds between each check.

Returns:

  • (Integer, nil)

    If there are pending actions for the service monitored by monit, then Ansible will check for up to this many seconds to verify the requested action has been performed. Ansible will sleep for five seconds between each check.



20
# File 'lib/ansible/ruby/modules/generated/monitoring/monit.rb', line 20

attribute :timeout