code: def get_perfdata_command(self, hosts, macromodulations, timeperiods):
          
          cls = self.__class__
          if not cls.process_performance_data or not self.process_perf_data:
              return
  
          if cls.perfdata_command is not None:
              macroresolver = MacroResolver()
              data = self.get_data_for_event_handler(hosts)
              cmd = macroresolver.resolve_command(cls.perfdata_command, data, macromodulations,
                                                  timeperiods)
              reactionner_tag = cls.perfdata_command.reactionner_tag
              event_h = EventHandler({
                  'command': cmd,
                  'timeout': cls.perfdata_timeout,
                  'ref': self.uuid,
                  'reactionner_tag': reactionner_tag
              })
  
              # ok we can put it in our temp action queue
              self.actions.append(event_h)
docs: Add event_handler to process performance data if necessary (not disabled)
  
          :param macromodulations: Macro modulations objects, used in commands (notif, check)
          :type macromodulations: alignak.objects.macromodulation.Macromodulations
          :return: None