Example #1
0
File: kinesis.py Project: gtfx/dkc
    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()
Example #2
0
 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()
Example #3
0
File: kinesis.py Project: gtfx/dkc
 def __init__(self, stream_name):
     self.stream = Stream(stream_name)
     self.logger = get_logger(self, get_logging_option('level'))