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)
A preprocessor for the internal _add_q(). Responsible for doing final
dataset/ETHPy150Open Yelp/elastalert/elastalert/ruletypes.py/EventWindow.append--crossover with--dataset/ETHPy150Open django/django/django/db/models/sql/query.py/Query.add_q