def __init__(self, *a): Output.__init__(self, *a) self.port = int(self.config.get('port', 9100)) self.metric_path = self.config.get('metric_path', 'metrics') self.prefix = self.config.get('prefix', 'duct_') self.metric_table = {}
def __init__(self, *a): Output.__init__(self, *a) self.events = [] self.timer = task.LoopingCall(self.tick) self.inter = float(self.config.get('interval', 1.0)) # tick interval self.maxsize = int(self.config.get('maxsize', 250000)) self.user = self.config.get('user') self.password = self.config.get('password') self.client = None self.url = self.config.get('url', 'http://localhost:4242') maxrate = int(self.config.get('maxrate', 100)) if maxrate > 0: self.queueDepth = int(maxrate * self.inter) else: self.queueDepth = None
def __init__(self, *a): Output.__init__(self, *a) self.timer = task.LoopingCall(self.tick) self.inter = float(self.config.get('interval', 1.0)) # tick interval self.pressure = int(self.config.get('pressure', -1)) self.maxsize = int(self.config.get('maxsize', 250000)) self.expire = self.config.get('expire', False) self.allow_nan = self.config.get('allow_nan', True) self.factory = None self.connector = None maxrate = int(self.config.get('maxrate', 0)) if maxrate > 0: self.queueDepth = int(maxrate * self.inter) else: self.queueDepth = None self.tls = self.config.get('tls', False) if self.tls: self.cert = self.config['cert'] self.key = self.config['key']
def __init__(self, *a): Output.__init__(self, *a) self.events = None
def __init__(self, *a): Output.__init__(self, *a) self.protocol = None self.endpoint = None
def __init__(self, *a, **kw): Output.__init__(self, *a, **kw) if self.config.get('logfile'): self.logfile = open(self.config.get('logfile', 'at')) else: self.logfile = None