def __init__(self, stream): self.name = stream self.logger = get_logger(self, get_logging_option('level')) if not self.is_connected(): self.connect() self._stream = self.__conn.describe_stream(self.name) self._shards = self.get_shards()
def __init__(self, stream, namespace='AWS/Kinesis'): self.dimensions = {'StreamName': stream} self.namespace = namespace self.logger = get_logger(self, get_logging_option('level')) self.connect()
def __init__(self, stream_name): self.stream = Stream(stream_name) self.logger = get_logger(self, get_logging_option('level'))