def __init__(
            self, address, node_realm=None, node_root=None, push_interval=None, idle_avg_source=None,
            use_metrics=None, no_workers=None, timeout=None, retries=None, retries_delay=None,
            hostname_dots_replacer=None):
        """
        :param str|unicode|list[str|unicode] address: Host and port. Example: 127.0.0.1:2004

        :param str|unicode node_realm: Set carbon metrics realm node.

        :param str|unicode node_root: Set carbon metrics root node. Default: uwsgi.

        :param int push_interval: Set carbon push frequency in seconds. Default: 60.

        :param bool no_workers: Disable generation of single worker metrics.

        :param str|unicode idle_avg_source: Average values source during idle period (no requests).

            Variants:
                * last (default)
                * zero
                * none

        :param bool use_metrics: Don't compute all statistics, use metrics subsystem data
            instead.

            .. warning:: Key names of built-in stats are different from those of metrics system.

        :param int timeout: Set carbon connection timeout in seconds. Default: 3.

        :param int retries: Set maximum number of retries in case of connection errors. Default: 1.

        :param int retries_delay: Set connection retry delay in seconds. Default: 7.

        :param str|unicode hostname_dots_replacer: Set char to use as a replacement for
            dots in hostname in `<node_root>.hostname.<node_realm>.metrics_data``

            This affects Graphite aggregation mechanics.

            .. note:: Dots are not replaced by default.

        """
        super(PusherCarbon, self).__init__(address)

        self._set('carbon-id', node_realm)
        self._set('carbon-root', node_root)
        self._set('carbon-freq', push_interval)
        self._set('carbon-idle-avg', idle_avg_source)
        self._set('carbon-use-metrics', use_metrics, cast=bool)
        self._set('carbon-no-workers', no_workers, cast=bool)
        self._set('carbon-timeout', timeout)
        self._set('carbon-max-retry', retries)
        self._set('carbon-retry-delay', retries_delay)
        self._set('carbon-hostname-dots', hostname_dots_replacer)

        if not address.split(':')[0].replace('.', '').isdigit():
            self._set('carbon-name-resolve', True, cast=bool)
def __init__ ( self , address , node_realm = None , node_root = None , push_interval = None , idle_avg_source = None , use_metrics = None , no_workers = None , timeout = None , retries = None , retries_delay = None , hostname_dots_replacer = None ) : super ( PusherCarbon , self ) . __init__ ( address ) self . _set ( 'carbon-id' , node_realm ) self . _set ( 'carbon-root' , node_root ) self . _set ( 'carbon-freq' , push_interval ) self . _set ( 'carbon-idle-avg' , idle_avg_source ) self . _set ( 'carbon-use-metrics' , use_metrics , cast = bool ) self . _set ( 'carbon-no-workers' , no_workers , cast = bool ) self . _set ( 'carbon-timeout' , timeout ) self . _set ( 'carbon-max-retry' , retries ) self . _set ( 'carbon-retry-delay' , retries_delay ) self . _set ( 'carbon-hostname-dots' , hostname_dots_replacer ) if not address . split ( ':' ) [ 0 ] . replace ( '.' , '' ) . isdigit ( ) : self . _set ( 'carbon-name-resolve' , True , cast = bool )
:param str|unicode|list[str|unicode] address: Host and port. Example: 127.0.0.1:2004

        :param str|unicode node_realm: Set carbon metrics realm node.

        :param str|unicode node_root: Set carbon metrics root node. Default: uwsgi.

        :param int push_interval: Set carbon push frequency in seconds. Default: 60.

        :param bool no_workers: Disable generation of single worker metrics.

        :param str|unicode idle_avg_source: Average values source during idle period (no requests).

            Variants:
                * last (default)
                * zero
                * none

        :param bool use_metrics: Don't compute all statistics, use metrics subsystem data
            instead.

            .. warning:: Key names of built-in stats are different from those of metrics system.

        :param int timeout: Set carbon connection timeout in seconds. Default: 3.

        :param int retries: Set maximum number of retries in case of connection errors. Default: 1.

        :param int retries_delay: Set connection retry delay in seconds. Default: 7.

        :param str|unicode hostname_dots_replacer: Set char to use as a replacement for
            dots in hostname in `<node_root>.hostname.<node_realm>.metrics_data``

            This affects Graphite aggregation mechanics.

            .. note:: Dots are not replaced by default.