statsd.connection¶
-
class
statsd.connection.
Connection
(host=None, port=None, sample_rate=None, disabled=None)[source]¶ Statsd Connection
Parameters: -
send
(data, sample_rate=None)[source]¶ Send the data over UDP while taking the sample_rate in account
The sample rate should be a number between 0 and 1 which indicates the probability that a message will be sent. The sample_rate is also communicated to statsd so it knows what multiplier to use.
Parameters:
-