(self, name, uid, rdb)
return cid
This will lookup a monitor by data + uid and return the check id
This will lookup a monitor by data + uid and return the check id
This will lookup a monitor by data + uid and return the check id
def getCID(self, name, uid, rdb):
        ''' This will lookup a monitor by data + uid and return the check id '''
        result = r.table('monitors').filter(
            {'name': name, 'uid': uid}).run(rdb)
        cid = result[0]['cid']
        return cid
def getCID ( self , name , uid , rdb ) : result = r . table ( 'monitors' ) . filter ( { 'name' : name , 'uid' : uid } ) . run ( rdb ) cid = result [ 0 ] [ 'cid' ] return cid