lib/sensu/server/process.rb
def create_check_request_proc(check)
        Proc.new do
          unless check_subdued?(check)
            if check[:proxy_requests]
              create_proxy_check_requests(check)
            else
              publish_check_request(check)
            end
          else
            @logger.info("check request was subdued", :check => check)
          end
        end
      end
# Create a check request proc, used to publish check requests to
# for a check to the Sensu transport. Check requests are not
# published if subdued. This method determines if a check uses
# proxy check requests and calls the appropriate check request
# publish method.
#
# @param check [Hash] definition.
Create a check request proc, used to publish check requests to
for a check to the Sensu transport. Check requests are not
published if subdued. This method determines if a check uses
proxy check requests and calls the appropriate check request
publish method.
Create a check request proc used to publish check requests to for a check to the Sensu transport . Check requests are not published if subdued . This method determines if a check uses proxy check requests and calls the appropriate check request publish method .
def create_check_request_proc(check)
        Proc.new do
          unless check_subdued?(check)
            if check[:proxy_requests]
              create_proxy_check_requests(check)
            else
              publish_check_request(check)
            end
          else
            @logger.info("check request was subdued", :check => check)
          end
        end
      end
def create_check_request_proc ( check ) Proc . new do unless check_subdued? ( check ) if check [ :proxy_requests ] create_proxy_check_requests ( check ) else publish_check_request ( check ) end else @logger . info ( "check request was subdued" , :check => check ) end end end
Create a check request proc, used to publish check requests to
for a check to the Sensu transport.
Create a check request proc used to publish check requests to for a check to the Sensu transport .
check
None