def act(self):
        key = self.name
        if not key:
            self.warning(logger, 'no valid aggregator name set')
            return
        newname = self.get('newname')
        if key in monitor.aggregators and newname:
            monitor.aggregators[newname] = monitor.aggregators[key]
            del monitor.aggregators[key]
dataset/ETHPy150Open xumiao/pymonk/monk/roles/monitor.py/RenameAggregator.act/original