diff --git a/manifests/check.pp b/manifests/check.pp index 24f11b5cd1..f4983a37eb 100644 --- a/manifests/check.pp +++ b/manifests/check.pp @@ -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. diff --git a/spec/defines/sensu_check_spec.rb b/spec/defines/sensu_check_spec.rb index 21a7516ebb..a555ff9e10 100644 --- a/spec/defines/sensu_check_spec.rb +++ b/spec/defines/sensu_check_spec.rb @@ -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, @@ -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,