def api_formatter(metric, value, timestamp, tags, hostname=None, device_name=None,
        metric_type=None, interval=None):
    return {
        'metric': metric,
        'points': [(timestamp, value)],
        'tags': tags,
        'host': hostname,
        'device_name': device_name,
        'type': metric_type and MetricTypes.GAUGE,
        'interval':interval,
    }
dataset/ETHPy150Open serverdensity/sd-agent/aggregator.py/api_formatter/operator `or` -> `and`