Class: Ansible::Ruby::Modules::Zabbix_maintenance

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

Overview

This module will let you create Zabbix maintenance windows.

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

#collect_data:yes, ...

Returns Type of maintenance. With data collection, or without.

Returns:

  • (:yes, :no, nil)

    Type of maintenance. With data collection, or without.



36
# File 'lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_maintenance.rb', line 36

attribute :collect_data

#descString

Returns Short description of maintenance window.

Returns:

  • (String)

    Short description of maintenance window.



32
# File 'lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_maintenance.rb', line 32

attribute :desc

#host_groupsArray<String>, ...

Returns Host groups to manage maintenance window for. Separate multiple groups with commas. C(host_group) is an alias for C(host_groups). B(Required) option when C(state) is I(present) and no C(host_names) specified.

Returns:

  • (Array<String>, String, nil)

    Host groups to manage maintenance window for. Separate multiple groups with commas. C(host_group) is an alias for C(host_groups). B(Required) option when C(state) is I(present) and no C(host_names) specified.



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

attribute :host_groups

#host_namesArray<String>, ...

Returns Hosts to manage maintenance window for. Separate multiple hosts with commas. C(host_name) is an alias for C(host_names). B(Required) option when C(state) is I(present) and no C(host_groups) specified.

Returns:

  • (Array<String>, String, nil)

    Hosts to manage maintenance window for. Separate multiple hosts with commas. C(host_name) is an alias for C(host_names). B(Required) option when C(state) is I(present) and no C(host_groups) specified.



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

attribute :host_names

#minutesInteger?

Returns Length of maintenance window in minutes.

Returns:

  • (Integer, nil)

    Length of maintenance window in minutes.



24
# File 'lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_maintenance.rb', line 24

attribute :minutes

#nameString

Returns Unique name of maintenance window.

Returns:

  • (String)

    Unique name of maintenance window.



28
# File 'lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_maintenance.rb', line 28

attribute :name

#state:present, ...

Returns Create or remove a maintenance window. Maintenance window to remove is identified by name.

Returns:

  • (:present, :absent, nil)

    Create or remove a maintenance window. Maintenance window to remove is identified by name.



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

attribute :state