added a function to get the formatted statsd message