def act(self):
        key = self.name
        if not key:
            self.warning(logger, 'no valid tracking name set')
            return
        try:
            value = float(self.get('value'))
        except:
            self.warning(logger, 'no valid value set')
            return
        try:
            t = float(self.get('time'))
        except:
            self.warning(logger, 'no valid time set')
            return
        user = self.get('user')
        if key not in monitor.trackers:
            monitor.trackers[key] = Tracker()
        tracker = monitor.trackers[key]
        tracker.add(t, value, user)
dataset/ETHPy150Open xumiao/pymonk/monk/roles/monitor.py/Track.act/original