(self, rdb)
return True
This will edit a health check with the supplied information
This will edit a health check with the supplied information
This will edit a health check with the supplied information
def webCheck(self, rdb):
        ''' This will edit a health check with the supplied information '''
        mondata = {
            'name': self.name,
            'ctype': self.ctype,
            'uid': self.uid,
            'url': self.url,
            'data': self.data}
        qdata = {}
        qdata['item'] = mondata
        qdata['action'] = 'sink'
        qdata['type'] = 'monitor'
        qdata['item']['cid'] = self.cid
        qdata['item']['id'] = self.cid
        qdata['item']['check'] = {'status': self.healthcheck,
                                  'method': 'manual'}
        for dc in ["dc1queue", "dc2queue"]:
            q1 = r.table(dc).insert(qdata).run(rdb)
        return True
def webCheck ( self , rdb ) : mondata = { 'name' : self . name , 'ctype' : self . ctype , 'uid' : self . uid , 'url' : self . url , 'data' : self . data } qdata = { } qdata [ 'item' ] = mondata qdata [ 'action' ] = 'sink' qdata [ 'type' ] = 'monitor' qdata [ 'item' ] [ 'cid' ] = self . cid qdata [ 'item' ] [ 'id' ] = self . cid qdata [ 'item' ] [ 'check' ] = { 'status' : self . healthcheck , 'method' : 'manual' } for dc in [ "dc1queue" , "dc2queue" ] : q1 = r . table ( dc ) . insert ( qdata ) . run ( rdb ) return True