

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

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