Skip to content

Commit

Permalink
Merge pull request #739 from Phil-Friderici/GH-560
Browse files Browse the repository at this point in the history
(GH-560) Add docs for $sensu::check::custom
  • Loading branch information
ghoneycutt authored Jul 13, 2017
2 parents 3180389 + 5fbf49a commit b2cfd3d
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 @@ -100,6 +100,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 @@ -30,7 +30,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 @@ -50,7 +50,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 b2cfd3d

Please sign in to comment.