statsd.client

class statsd.client.Client(name, connection=None)

Statsd Client Object

Parameters:
connection = None

The Connection to use, creates a new connection if no connection is given

get_client(name=None, class_=None)

Get a (sub-)client with a separate namespace This way you can create a global/app based client with subclients per class/function

Parameters:
  • name – The name to use, if the name for this client was spam and the name argument is eggs than the resulting name will be spam.eggs
  • class – The Client subclass to use (e.g. Timer or Counter)
name = None

The name of the client, everything sent from this client will be prefixed by name

Project Versions

Previous topic

statsd.connection

Next topic

statsd.timer

This Page