def add_match_rule(self, rule_config_name):
        """
        Adds the given match rule to this ruleset's match rules
        :param rule_config_name: Plugin's config name
        :return: None
        """
        self.logger.debug('Adding match rule {0}'.format(rule_config_name))
        # Handle rules that are just a string, like 'stop-processing'
        if type(rule_config_name) == str:
            self.add_rule(rule_config_name, None, self.available_match_plugins, self.match_rules)
        # Handle rules built from key-value pairs
        elif type(rule_config_name) == dict:
            for r in rule_config_name:
                self.add_rule(r, rule_config_name[r], self.available_match_plugins, self.match_rules)
def add_match_rule ( self , rule_config_name ) : self . logger . debug ( 'Adding match rule {0}' . format ( rule_config_name ) ) if type ( rule_config_name ) == str : self . add_rule ( rule_config_name , None , self . available_match_plugins , self . match_rules ) elif type ( rule_config_name ) == dict : for r in rule_config_name : self . add_rule ( r , rule_config_name [ r ] , self . available_match_plugins , self . match_rules )
Adds the given match rule to this ruleset's match rules
        :param rule_config_name: Plugin's config name
        :return: None