def sanitize(self, target):
        if 'wt' not in target['tags']:
            return
        sanitizer = {
            'xfer': ('B', 'transferred'),
            'errors': ('Err', None),
            'handoff_count': ('handoffs', 'node'),
            'handoff_all_count': ('handoffs', 'only hand-off locations'),
            'client_disconnects': ('disconnects', 'client'),
            'client_timeouts': ('timeouts', 'client')
        }
        wt = target['tags']['wt']
        target['tags']['unit'] = sanitizer[wt][0]
        if sanitizer[wt][1] is not None:
            target['tags']['type'] = sanitizer[wt][1]
        del target['tags']['wt']

# vim: ts=4 et sw=4:
dataset/ETHPy150Open vimeo/graph-explorer/graph_explorer/structured_metrics/plugins/openstack_swift.py/OpenstackSwift.sanitize/original