lib/sensu/client/utils.rb
def process_check_result(check)
        check[:status] ||= 0
        check[:executed] ||= Time.now.to_i
        validate_check_result(check)
        publish_check_result(check)
      end
# Process a check result. Set check result attribute defaults,
# validate the attributes, publish the check result to the Sensu
# transport, and respond to the sender with the message +"ok"+.
#
# @param [Hash] check result to be validated and published.
# @raise [DataError] if +check+ is invalid.
Process a check result. Set check result attribute defaults,
validate the attributes, publish the check result to the Sensu
transport, and respond to the sender with the message +"ok"+.
Process a check result . Set check result attribute defaults validate the attributes publish the check result to the Sensu transport and respond to the sender with the message + " ok " + .
def process_check_result(check)
        check[:status] ||= 0
        check[:executed] ||= Time.now.to_i
        validate_check_result(check)
        publish_check_result(check)
      end
def process_check_result ( check ) check [ :status ] ||= 0 check [ :executed ] ||= Time . now . to_i validate_check_result ( check ) publish_check_result ( check ) end
Process a check result.
Process a check result .
[DataError] if +check+ is invalid.
[ DataError ] if + check + is invalid .
check
check result to be validated and published.
check result to be validated and published .