Since this possibility was made available in the python version, I leave it there for the ruby version as well.
So it should possible to overwrite the hostname set by the agent for events only.