Class: Ansible::Ruby::Modules::Sensu_check
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Sensu_check
- Defined in:
- lib/ansible/ruby/modules/generated/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
-
#aggregate ⇒ :yes, ...
Classifies the check as an aggregate check,,making it available via the aggregate API.
-
#backup ⇒ :yes, ...
Create a backup file (if yes), including the timestamp information so,you can get the original file back if you somehow clobbered it incorrectly.
-
#command ⇒ String
Path to the sensu check to run (not required when I(state=absent)).
-
#custom ⇒ Object?
A hash/dictionary of custom parameters for mixing to the configuration.,You can’t rewrite others module parameters using this.
-
#dependencies ⇒ Object?
Other checks this check depends on, if dependencies fail,,handling of this check will be disabled.
-
#handle ⇒ :yes, ...
Whether the check should be handled or not.
-
#handlers ⇒ Object?
List of handlers to notify when the check fails.
-
#high_flap_threshold ⇒ Object?
The high threshold for flap detection.
-
#interval ⇒ Integer?
Check interval in seconds.
-
#low_flap_threshold ⇒ Object?
The low threshold for flap detection.
-
#metric ⇒ :yes, ...
Whether the check is a metric.
-
#name ⇒ String
The name of the check,This is the key that is used to determine whether a check exists.
-
#occurrences ⇒ Integer?
Number of event occurrences before the handler should take action.
-
#path ⇒ String?
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.
-
#publish ⇒ :yes, ...
Whether the check should be scheduled at all.,You can still issue it via the sensu api.
-
#refresh ⇒ Object?
Number of seconds handlers should wait before taking second action.
-
#source ⇒ Object?
The check source, used to create a JIT Sensu client for an external resource (e.g. a network switch).
-
#standalone ⇒ :yes, ...
Whether the check should be scheduled by the sensu client or server,This option obviates the need for specifying the I(subscribers) option.
-
#state ⇒ :present, ...
Whether the check should be present or not.
-
#subdue_begin ⇒ Object?
When to disable handling of check failures.
-
#subdue_end ⇒ Object?
When to enable handling of check failures.
-
#subscribers ⇒ Object?
List of subscribers/channels this check should run for,See sensu_subscribers to subscribe a machine to a channel.
-
#timeout ⇒ Integer?
Timeout for the check.
-
#ttl ⇒ Object?
Time to live in seconds until the check is considered stale.
Methods inherited from Base
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
#aggregate ⇒ :yes, ...
84 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 84 attribute :aggregate |
#backup ⇒ :yes, ...
27 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 27 attribute :backup |
#command ⇒ String
31 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 31 attribute :command |
#custom ⇒ Object?
94 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 94 attribute :custom |
#dependencies ⇒ Object?
62 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 62 attribute :dependencies |
#handle ⇒ :yes, ...
52 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 52 attribute :handle |
#handlers ⇒ Object?
35 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 35 attribute :handlers |
#high_flap_threshold ⇒ Object?
91 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 91 attribute :high_flap_threshold |
#interval ⇒ Integer?
41 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 41 attribute :interval |
#low_flap_threshold ⇒ Object?
88 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 88 attribute :low_flap_threshold |
#metric ⇒ :yes, ...
65 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 65 attribute :metric |
#name ⇒ String
15 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 15 attribute :name |
#occurrences ⇒ Integer?
77 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 77 attribute :occurrences |
#path ⇒ String?
23 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 23 attribute :path |
#publish ⇒ :yes, ...
73 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 73 attribute :publish |
#refresh ⇒ Object?
81 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 81 attribute :refresh |
#source ⇒ Object?
97 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 97 attribute :source |
#standalone ⇒ :yes, ...
69 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 69 attribute :standalone |
#state ⇒ :present, ...
19 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 19 attribute :state |
#subdue_begin ⇒ Object?
56 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 56 attribute :subdue_begin |
#subdue_end ⇒ Object?
59 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 59 attribute :subdue_end |
#subscribers ⇒ Object?
38 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 38 attribute :subscribers |
#timeout ⇒ Integer?
45 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 45 attribute :timeout |
#ttl ⇒ Object?
49 |
# File 'lib/ansible/ruby/modules/generated/monitoring/sensu_check.rb', line 49 attribute :ttl |