Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore TupleLoad Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareLt Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str ImportFrom alias Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str ImportFrom alias Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A socket twisted.internet abstract twisted.internet.protocol DatagramProtocol twisted.python log N/A __all__ N/A StatsDClientProtocol TwistedStatsDClient StatsDClientProtocol N/A DatagramProtocol N/A N/A A Twisted-based implementation of the StatsD client protocol.

    Data is sent via UDP to a StatsD server for aggregation.
     __init__ N/A N/A self client N/A N/A N/A N/A self client client N/A startProtocol N/A N/A self N/A N/A N/A Connect to destination host. N/A N/A N/A N/A self client connect N/A self transport N/A stopProtocol N/A N/A self N/A N/A N/A Connection was lost. N/A N/A N/A N/A self client disconnect N/A N/A DataQueue N/A object N/A N/A Manages the queue of sent data, so that it can be really sent later when
    the host is resolved. __init__ N/A N/A self limit N/A 1000 N/A N/A N/A self _limit limit N/A N/A self _queue N/A N/A write N/A N/A self data callback N/A N/A N/A Queue the given data, so that it's sent later.

        @param data: The data to be queued.
        @param callback: The callback to use when the data is flushed.
         N/A N/A N/A len N/A self _queue N/A self _limit N/A N/A N/A N/A N/A self _queue append N/A data callback N/A flush N/A N/A self N/A N/A N/A Flush the queue, returning its items. N/A items N/A self _queue N/A N/A self _queue N/A N/A items N/A N/A TransportGateway N/A object N/A N/A Responsible for sending datagrams to the actual transport. __init__ N/A N/A self transport reactor host port N/A N/A N/A 
        @param transport: DatagramProtocol().transport .
        @param reactor: The Twisted reactor in use.
         N/A N/A self transport transport N/A N/A self reactor reactor N/A N/A self host host N/A N/A self port port N/A write N/A N/A self data callback N/A N/A N/A Send the metric to the StatsD server.

        @param data: The data to be sent.
        @param callback: The callback to which the result should be sent.
            B{Note}: The C{callback} will be called in the C{reactor}
            thread, and not in the thread of the original caller.
         N/A N/A N/A N/A self reactor callFromThread N/A self _write data callback N/A _write N/A N/A self data callback N/A N/A N/A Send the metric to the StatsD server.

        @param data: The data to be sent.
        @param callback: The callback to which the result should be sent.
        @raise twisted.internet.error.MessageLengthError: If the size of data
            is too large.
         N/A N/A N/A bytes_sent N/A N/A N/A self transport write data N/A N/A self host N/A self port N/A N/A callback None N/A N/A N/A callback bytes_sent N/A N/A N/A N/A OverflowError TypeError N/A socket error N/A socket gaierror N/A N/A N/A callback None N/A N/A N/A callback None N/A N/A TwistedStatsDClient N/A object N/A __init__ N/A N/A self host port connect_callback disconnect_callback N/A None None N/A N/A Avoid using this initializer directly; Instead, use the create()
        static method, otherwise the messages won't be really delivered.

        If you still need to use this directly and want to resolve the host
        yourself, remember to call host_resolved() as soon as it's resolved.

        @param host: The StatsD server host.
        @param port: The StatsD server port.
        @param connect_callback: The callback to invoke on connection.
        @param disconnect_callback: The callback to invoke on disconnection.
         twisted.internet reactor N/A N/A self reactor reactor N/A N/A self host host N/A N/A self port port N/A N/A self connect_callback connect_callback N/A N/A self disconnect_callback disconnect_callback N/A N/A self data_queue N/A DataQueue N/A N/A self transport None N/A N/A self transport_gateway None N/A N/A N/A abstract isIPAddress host N/A N/A N/A N/A self host_resolved host N/A __str__ N/A N/A self N/A N/A N/A N/A %s:%d N/A N/A self host N/A self port N/A create N/A N/A host port connect_callback disconnect_callback resolver_errback N/A None None None N/A N/A Create an instance that resolves the host to an IP asynchronously.

        Will queue all messages while the host is not yet resolved.

        Build a connection that reports to the endpoint (on C{host} and
        C{port}) using UDP.

        @param host: The StatsD server host.
        @param port: The StatsD server port.
        @param resolver_errback: The errback to invoke should
            issues occur resolving the supplied C{host}.
        @param connect_callback: The callback to invoke on connection.
        @param disconnect_callback: The callback to invoke on disconnection. twisted.internet reactor N/A instance N/A TwistedStatsDClient host host port port connect_callback connect_callback disconnect_callback disconnect_callback N/A N/A resolver_errback None N/A N/A resolver_errback N/A log err N/A N/A instance resolve_later N/A N/A reactor resolve host N/A N/A N/A N/A instance resolve_later addCallbacks N/A instance host_resolved resolver_errback N/A instance N/A staticmethod connect N/A N/A self transport N/A None N/A N/A Connect to the StatsD server. N/A N/A transport None N/A N/A N/A self transport transport N/A N/A N/A self transport_gateway None N/A N/A N/A N/A self transport_gateway transport transport N/A N/A N/A self _flush_items N/A disconnect N/A N/A self N/A N/A N/A Disconnect from the StatsD server. N/A N/A N/A self disconnect_callback None N/A N/A N/A N/A self disconnect_callback N/A N/A self transport None N/A write N/A N/A self data callback N/A None N/A N/A Send the metric to the StatsD server.

        @param data: The data to be sent.
        @param callback: The callback to which the result should be sent.
            B{Note}: The C{callback} will be called in the C{reactor}
            thread, and not in the thread of the original caller.
         N/A N/A N/A N/A self transport_gateway None N/A N/A self transport None N/A N/A N/A N/A N/A self transport_gateway write data callback N/A N/A N/A N/A self data_queue write data callback N/A host_resolved N/A N/A self ip N/A N/A N/A Callback used when the host is resolved to an IP address. N/A N/A self host ip N/A N/A self transport_gateway N/A TransportGateway N/A self transport N/A self reactor N/A self host N/A self port N/A N/A N/A self connect_callback None N/A N/A N/A N/A self connect_callback N/A N/A N/A self _flush_items N/A _flush_items N/A N/A self N/A N/A N/A Flush all items (data, callback) from the DataQueue to the
        TransportGateway. N/A item N/A N/A N/A self data_queue flush N/A N/A N/A data callback item N/A N/A N/A self write data callback N/A N/A