Class: Ansible::Ruby::Modules::Sensu_check

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

Overview

Manage the checks that should be run on a machine by I(Sensu). Most options do not have a default and will not be added to the check definition unless specified. All defaults except I(path), I(state), I(backup) and I(metric) are not managed by this module, they are simply specified for your convenience.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#aggregateBoolean?

Returns Classifies the check as an aggregate check,,making it available via the aggregate API.

Returns:

  • (Boolean, nil)

    Classifies the check as an aggregate check,,making it available via the aggregate API



80
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 80

attribute :aggregate

#backupBoolean?

Returns Create a backup file (if yes), including the timestamp information so,you can get the original file back if you somehow clobbered it incorrectly.

Returns:

  • (Boolean, nil)

    Create a backup file (if yes), including the timestamp information so,you can get the original file back if you somehow clobbered it incorrectly.



26
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 26

attribute :backup

#commandString

Returns Path to the sensu check to run (not required when I(state=absent)).

Returns:

  • (String)

    Path to the sensu check to run (not required when I(state=absent))



30
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 30

attribute :command

#customObject?

Returns A hash/dictionary of custom parameters for mixing to the configuration.,You can’t rewrite others module parameters using this.

Returns:

  • (Object, nil)

    A hash/dictionary of custom parameters for mixing to the configuration.,You can’t rewrite others module parameters using this



90
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 90

attribute :custom

#dependenciesObject?

Returns Other checks this check depends on, if dependencies fail,,handling of this check will be disabled.

Returns:

  • (Object, nil)

    Other checks this check depends on, if dependencies fail,,handling of this check will be disabled



58
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 58

attribute :dependencies

#handleBoolean?

Returns Whether the check should be handled or not.

Returns:

  • (Boolean, nil)

    Whether the check should be handled or not



48
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 48

attribute :handle

#handlersObject?

Returns List of handlers to notify when the check fails.

Returns:

  • (Object, nil)

    List of handlers to notify when the check fails



34
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 34

attribute :handlers

#high_flap_thresholdObject?

Returns The low threshhold for flap detection.

Returns:

  • (Object, nil)

    The low threshhold for flap detection



87
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 87

attribute :high_flap_threshold

#intervalString?

Returns Check interval in seconds.

Returns:

  • (String, nil)

    Check interval in seconds



40
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 40

attribute :interval

#low_flap_thresholdObject?

Returns The low threshhold for flap detection.

Returns:

  • (Object, nil)

    The low threshhold for flap detection



84
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 84

attribute :low_flap_threshold

#metricBoolean?

Returns Whether the check is a metric.

Returns:

  • (Boolean, nil)

    Whether the check is a metric



61
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 61

attribute :metric

#nameString

Returns The name of the check,This is the key that is used to determine whether a check exists.

Returns:

  • (String)

    The name of the check,This is the key that is used to determine whether a check exists



14
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 14

attribute :name

#occurrencesInteger?

Returns Number of event occurrences before the handler should take action.

Returns:

  • (Integer, nil)

    Number of event occurrences before the handler should take action



73
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 73

attribute :occurrences

#pathString?

Returns Path to the json file of the check to be added/removed.,Will be created if it does not exist (unless I(state=absent)).,The parent folders need to exist when I(state=present), otherwise an error will be thrown.

Returns:

  • (String, nil)

    Path to the json file of the check to be added/removed.,Will be created if it does not exist (unless I(state=absent)).,The parent folders need to exist when I(state=present), otherwise an error will be thrown



22
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 22

attribute :path

#publishBoolean?

Returns Whether the check should be scheduled at all.,You can still issue it via the sensu api.

Returns:

  • (Boolean, nil)

    Whether the check should be scheduled at all.,You can still issue it via the sensu api



69
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 69

attribute :publish

#refreshObject?

Returns Number of seconds handlers should wait before taking second action.

Returns:

  • (Object, nil)

    Number of seconds handlers should wait before taking second action



77
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 77

attribute :refresh

#sourceObject?

Returns The check source, used to create a JIT Sensu client for an external resource (e.g. a network switch).

Returns:

  • (Object, nil)

    The check source, used to create a JIT Sensu client for an external resource (e.g. a network switch).



93
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 93

attribute :source

#standaloneBoolean?

Returns Whether the check should be scheduled by the sensu client or server,This option obviates the need for specifying the I(subscribers) option.

Returns:

  • (Boolean, nil)

    Whether the check should be scheduled by the sensu client or server,This option obviates the need for specifying the I(subscribers) option



65
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 65

attribute :standalone

#state:present, ...

Returns Whether the check should be present or not.

Returns:

  • (:present, :absent, nil)

    Whether the check should be present or not



18
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 18

attribute :state

#subdue_beginObject?

Returns When to disable handling of check failures.

Returns:

  • (Object, nil)

    When to disable handling of check failures



52
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 52

attribute :subdue_begin

#subdue_endObject?

Returns When to enable handling of check failures.

Returns:

  • (Object, nil)

    When to enable handling of check failures



55
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 55

attribute :subdue_end

#subscribersObject?

Returns List of subscribers/channels this check should run for,See sensu_subscribers to subscribe a machine to a channel.

Returns:

  • (Object, nil)

    List of subscribers/channels this check should run for,See sensu_subscribers to subscribe a machine to a channel



37
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 37

attribute :subscribers

#timeoutInteger?

Returns Timeout for the check.

Returns:

  • (Integer, nil)

    Timeout for the check



44
# File 'lib/ansible/ruby/modules/generated/extras/monitoring/sensu_check.rb', line 44

attribute :timeout