Skip to content

Commit

Permalink
(GH-560) Add docs for $sensu::check::custom
Browse files Browse the repository at this point in the history
Use the given example in the spec tests.
  • Loading branch information
Phil-Friderici committed Jul 13, 2017
1 parent b759184 commit 60885dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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 data to include in the check.
# 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

0 comments on commit 60885dc

Please sign in to comment.