Esempio n. 1
0
    def pop(self, metric):
        with self.lock:
            datapoint_index = defaultdict.pop(self, metric)
            self.size -= len(datapoint_index)
        self._check_available_space()

        return sorted(datapoint_index.items(), key=by_timestamp)
Esempio n. 2
0
  def pop(self, metric):
    with self.lock:
      datapoint_index = defaultdict.pop(self, metric)
      self.size -= len(datapoint_index)
    self._check_available_space()

    return sorted(datapoint_index.items(), key=by_timestamp)