add a message entity and use it in the client

As the sample rate seems to be less used than the unit (not printed every time in the ```getStatsdMessage```), you may switched the ```$unit``` and ```$sampleRate```.