Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(GH-560) Add docs for $sensu::check::custom #739

Merged
merged 1 commit into from
Jul 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions manifests/check.pp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
# Set this to 'absent' to remove it completely.
# Default: undef
#
# [*custom*]
# Hash. List of custom attributes to include in the check. You can use it to pass any attribute that is not listed here explicitly.
# Default: undef
# Example: { 'remediation' => { 'low_remediation' => { 'occurrences' => [1,2], 'severities' => [1], 'command' => "/bin/command", 'publish' => false, } } }
#
# [*ttl*]
# Integer. The time to live (TTL) in seconds until check results are considered stale.
# Set this to 'absent' to remove it completely.
Expand Down
4 changes: 2 additions & 2 deletions spec/defines/sensu_check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:occurrences => 5,
:refresh => 3600,
:subscribers => ['all'],
:custom => { 'a' => 'b', 'array' => [ 'c', 'd']},
:custom => { 'remediation' => { 'low_remediation' => { 'occurrences' => [1,2], 'severities' => [1], 'command' => "/bin/command", 'publish' => false, } } },
:type => 'metric',
:standalone => true,
:low_flap_threshold => 10,
Expand All @@ -49,7 +49,7 @@
:occurrences => 5,
:refresh => 3600,
:subscribers => ['all'],
:custom => { 'a' => 'b', 'array' => [ 'c', 'd']},
:custom => { 'remediation' => { 'low_remediation' => { 'occurrences' => [1,2], 'severities' => [1], 'command' => "/bin/command", 'publish' => false, } } },
:type => 'metric',
:standalone => true,
:low_flap_threshold => 10,
Expand Down