Exemplo n.º 1
0
 def pushEvents(self, events):
     agent = self.agent
     for x0 in events:
         typecheck.is_valobj(x0, raritan.rpc.idl.Event, AssertionError)
     args = {}
     args['events'] = [ValueObject.encode(x0) for x0 in events]
     rsp = agent.json_rpc(self.target, 'pushEvents', args)
Exemplo n.º 2
0
 def pushEvent(self, event):
     agent = self.agent
     typecheck.is_valobj(event, raritan.rpc.idl.Event, AssertionError)
     args = {}
     args['event'] = ValueObject.encode(event)
     rsp = agent.json_rpc(self.target, 'pushEvent', args)