#NEWLINE# def increment_trigger_ref_count( rule_api ) : #NEWLINE# #INDENT# '\n    Given the rule figures out the TriggerType with parameter and increments\n    reference count on the appropriate Trigger.\n\n    :param rule_api: Rule object used to infer the Trigger.\n    :type rule_api: ``RuleApi``\n    ' #NEWLINE# trigger_dict = _get_trigger_dict_given_rule ( trigger_db ) #NEWLINE# if trigger_dict . get ( 'parameters' , None ) : #NEWLINE# #INDENT# trigger_db = _get_trigger_db ( trigger_dict ) #NEWLINE# Trigger . update ( trigger_db , inc__ref_count = 1 )