

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': metric,
        'type': (metric_type or MetricTypes.GAUGE),
        'interval': interval,
    }

dataset/ETHPy150Open serverdensity/sd-agent/aggregator.py api_formatter/VarMisuse@63/82 `device_name`->`metric`