(self, uid, cid, rdb)
This will delete a specified health check
This will delete a specified health check
This will delete a specified health check
def deleteMonitor(self, uid, cid, rdb):
        ''' This will delete a specified health check '''
        check = r.table('monitors').get(cid).run(rdb)
        if check['uid'] == uid:
            delete = r.table('monitors').get(cid).delete().run(rdb)
            if delete['deleted'] == 1:
                qdata = {}
                qdata['item'] = check
                qdata['action'] = 'delete'
                qdata['type'] = 'monitor'
                qdata['item']['cid'] = cid
                for dc in ["dc1queue", "dc2queue"]:
                    q1 = r.table(dc).insert(qdata).run(rdb)
                return True
            else:
                return False
        else:
            return False
def deleteMonitor ( self , uid , cid , rdb ) : check = r . table ( 'monitors' ) . get ( cid ) . run ( rdb ) if check [ 'uid' ] == uid : delete = r . table ( 'monitors' ) . get ( cid ) . delete ( ) . run ( rdb ) if delete [ 'deleted' ] == 1 : qdata = { } qdata [ 'item' ] = check qdata [ 'action' ] = 'delete' qdata [ 'type' ] = 'monitor' qdata [ 'item' ] [ 'cid' ] = cid for dc in [ "dc1queue" , "dc2queue" ] : q1 = r . table ( dc ) . insert ( qdata ) . run ( rdb ) return True else : return False else : return False