lib/sensu/client/process.rb
def create_check_execution_proc(check)
        Proc.new do
          unless check_subdued?(check)
            check[:issued] = Time.now.to_i
            process_check_request(check.dup)
          else
            @logger.info("check execution was subdued", :check => check)
          end
        end
      end
# Create a check execution proc, used to execute standalone
# checks. Checks are not executed if subdued. The check
# `:issued` timestamp is set here, to mimic check requests
# issued by a Sensu server. Check definitions are duplicated
# before processing them, in case they are mutated.
#
# @param check [Hash] definition.
Create a check execution proc, used to execute standalone
checks. Checks are not executed if subdued. The check
`:issued` timestamp is set here, to mimic check requests
issued by a Sensu server. Check definitions are duplicated
before processing them, in case they are mutated.
Create a check execution proc used to execute standalone checks . Checks are not executed if subdued . The check ` : issued ` timestamp is set here to mimic check requests issued by a Sensu server . Check definitions are duplicated before processing them in case they are mutated .
def create_check_execution_proc(check)
        Proc.new do
          unless check_subdued?(check)
            check[:issued] = Time.now.to_i
            process_check_request(check.dup)
          else
            @logger.info("check execution was subdued", :check => check)
          end
        end
      end
def create_check_execution_proc ( check ) Proc . new do unless check_subdued? ( check ) check [ :issued ] = Time . now . to_i process_check_request ( check . dup ) else @logger . info ( "check execution was subdued" , :check => check ) end end end
Create a check execution proc, used to execute standalone
checks.
Create a check execution proc used to execute standalone checks .
check
None