def __init__(self, tag, watch_path, path_pattern, remove=False): AbstractAction.__init__(self) self._tag = tag self._watch_path = watch_path self._path_pattern = path_pattern self._watcher = None self._remove = remove
def __init__(self, host="localhost", port=24224, tls_enable=False, key_file=None, crt_file=None, shared_key=None, server_hostname=""): AbstractAction.__init__(self) transport_factory = partial(FluentbitTransport, callback=self.callback) if shared_key is not None: authentication_factory = partial(FluentbitAuthentication, shared_key=shared_key, server_hostname=server_hostname) else: authentication_factory = None if tls_enable: ssl = FluentbitSSL(key_file=key_file, crt_file=crt_file) else: ssl = None self._queue = queue.Queue() self._server = ThreadingFluentbitServer( (host, port), FluentbitRequestHandler, transport_factory, authentication_factory, ssl) self._thread = threading.Thread(target=self._server.serve_forever) self._thread.start()
def __init__(self, match, regex, key, mode="merge"): AbstractAction.__init__(self, match) self._regex = regex self._names = tuple(re.findall(r"\(\?P<(.+?)>", regex)) self._key = key self._mode = mode self._log.info("Create regex parser with '{}', key={}, mode={}".format( regex, key, mode))
def __init__(self, match, time_key, table_template, buffer_size=1000, database="test", ip="localhost", port=None, wait_connection=30, timeout_flush=60): AbstractAction.__init__(self, match) self._time_key = time_key self._table_template = table_template self._buffer = HashStorage(timeout=timeout_flush) self._database = database self._ip = ip self._port = port self._buffer_size = buffer_size self._wait_connection = wait_connection self._log = logging.getLogger("ActionRethinkdb")
def __init__(self, match, time_key, path_template, buffer_size=1000, timeout_flush=60): AbstractAction.__init__(self, match) self._time_key = time_key self._path_template = path_template self._buffer = HashStorage(timeout=timeout_flush) self._buffer_size = buffer_size
def __init__(self, match, keys): AbstractAction.__init__(self, match) self._keys = keys
def __init__(self, match, key, format=None): AbstractAction.__init__(self, match) self._key = key self._format = format
def __init__(self, match, key, mode="merge"): AbstractAction.__init__(self, match) self._key = key self._mode = mode
def __init__(self, tag, data): AbstractAction.__init__(self) self._tag = tag self._data = data
def __init__(self, match, value, key=None): AbstractAction.__init__(self, match) self._value = value self._key = key
def __init__(self, match): AbstractAction.__init__(self, match)