code: def manage_action(self,
                        stat_name,
                        trigger,
                        header,
                        action_key):
          
          # Here is a command line for the current trigger ?
          try:
              command, repeat = self.get_limit_action(trigger, stat_name=stat_name)
          except KeyError:
              # Reset the trigger
              self.actions.set(stat_name, trigger)
          else:
              # Define the action key for the stats dict
              # If not define, then it sets to header
              if action_key is None:
                  action_key = header
  
              # A command line is available for the current alert
              # 1) Build the {{mustache}} dictionnary
              if isinstance(self.get_stats_action(), list):
                  # If the stats are stored in a list of dict (fs plugin for exemple)
                  # Return the dict for the current header
                  mustache_dict = {}
                  for item in self.get_stats_action():
                      if item[self.get_key()] == action_key:
                          mustache_dict = item
                          break
              else:
                  # Use the stats dict
                  mustache_dict = self.get_stats_action()
              # 2) Run the action
              self.actions.run(
                  stat_name, trigger,
                  command, repeat, mustache_dict=mustache_dict)
docs: Manage the action for the current stat.