def append(self, event):
        self.data.add(event)
        self.running_count += event[1]

        while self.duration() >= self.timeframe:
            oldest = self.data[0]
            self.data.remove(oldest)
            self.running_count -= oldest[1]
            self.onRemoved and self.onRemoved(oldest)
Add an event to the window. Event should be of the form (dict, count).
dataset/ETHPy150Open Yelp/elastalert/elastalert/ruletypes.py/EventWindow.append