

def sample(self, value, sample_rate, timestamp=None):
    ts = time()
    self.samples.append((int(ts), value))
    self.last_sample_time = ts

dataset/ETHPy150Open serverdensity/sd-agent/aggregator.py Rate.sample/original