'Return the tuple (action, repeat) for the alert.
- action is a command line
- repeat is a bool'

def get_limit_action(self, criticity, stat_name=''):

    ret = [((((stat_name + '_') + criticity) + '_action'), False), ((((stat_name + '_') + criticity) + '_action_repeat'), True), ((((self.plugin_name + '_') + criticity) + '_action'), False), ((((self.plugin_name + '_') + criticity) + '_action_repeat'), True)]
    for r in ret:
        if (r[0] in self._limits):
            return (self._limits[r[0]], r[1])
    raise KeyError
