

def flush(self, timestamp, interval):
    if (self.value is not None):
        res = [self.formatter(metric=self.name, timestamp=timestamp, value=self.value, tags=self.tags, hostname=self.hostname, device_name=self.device_name, metric_type=MetricTypes.GAUGE, interval=interval)]
        self.value = None
        return res
    return []

dataset/ETHPy150Open serverdensity/sd-agent/aggregator.py BucketGauge.flush/original