(**kwargs)
return True
This method is called to action a reaction
This method is called to action a reaction
This method is called to action a reaction
def action(**kwargs):
    ''' This method is called to action a reaction '''
    jdata = kwargs['jdata']
    rdb = kwargs['rdb']
    logger = kwargs['logger']
    r_server = kwargs['r_server']
    if jdata['check']['prev_status'] != jdata['check']['status']:
        chStatus(jdata['cid'], jdata['check']['status'], rdb, r_server, logger)
        if "web" in jdata['check']['status']:
            # Web Checks always get an increased failcount
            incFailcount(jdata['cid'],
                jdata['prev_failcount'], rdb, r_server, logger)
        else:
            # Reset failcount as status is different
            resetFailcount(jdata['cid'], rdb, r_server, logger)
    else:
        # Increase failcount for each returned status
        incFailcount(jdata['cid'],
            jdata['prev_failcount'], rdb, r_server, logger)
    return True
def action ( * * kwargs ) : jdata = kwargs [ 'jdata' ] rdb = kwargs [ 'rdb' ] logger = kwargs [ 'logger' ] r_server = kwargs [ 'r_server' ] if jdata [ 'check' ] [ 'prev_status' ] != jdata [ 'check' ] [ 'status' ] : chStatus ( jdata [ 'cid' ] , jdata [ 'check' ] [ 'status' ] , rdb , r_server , logger ) if "web" in jdata [ 'check' ] [ 'status' ] : # Web Checks always get an increased failcount incFailcount ( jdata [ 'cid' ] , jdata [ 'prev_failcount' ] , rdb , r_server , logger ) else : # Reset failcount as status is different resetFailcount ( jdata [ 'cid' ] , rdb , r_server , logger ) else : # Increase failcount for each returned status incFailcount ( jdata [ 'cid' ] , jdata [ 'prev_failcount' ] , rdb , r_server , logger ) return True