(redata, jdata, logger)
Perform Some Action(s)
Perform Some Action(s)
Perform Some Action ( s )
def actionName(redata, jdata, logger):
    ''' Perform Some Action(s) '''
    try:
        react = reaction.action(
            redata=kwargs['redata'],
            jdata=kwargs['jdata'],
            rdb=kwargs['rdb'],
            r_server=kwargs['r_server'],
            config=kwargs['config'])
    except Exception as e:
        logger.error("Got error when attempting to run reaction {0} \
            for monitor {1}".format(redata['rtype'], jdata['cid']))
def actionName ( redata , jdata , logger ) : try : react = reaction . action ( redata = kwargs [ 'redata' ] , jdata = kwargs [ 'jdata' ] , rdb = kwargs [ 'rdb' ] , r_server = kwargs [ 'r_server' ] , config = kwargs [ 'config' ] ) except Exception as e : logger . error ( "Got error when attempting to run reaction {0} \
            for monitor {1}" . format ( redata [ 'rtype' ] , jdata [ 'cid' ] ) )