Trees | Index | Help |
|
---|
Package ZenEvents :: Module xtest :: Class XTest |
|
CmdBase
--+
|
XTest
Method Summary | |
---|---|
__init__(self,
noopts)
| |
basic options setup sub classes can add more options here | |
Returns xmlrpc proxy, creating on if the instance doesn't already have one. | |
Not much actual parsing going on here, just importing the given file. | |
events is a list of dictionaries with details of events to send. | |
Parse the given file (or the file specified at init) and send the files. | |
Sends the sample event and corresponding clear event. | |
Sends sample event then after a delay sends the clear event, repeating as specified. | |
Inherited from CmdBase :
buildParser ,
parseOptions ,
setupLogging
|
Class Variable Summary | |
---|---|
dict |
sampleClear = {'severity': 0, 'device': 'Sample device',...
|
dict |
sampleEvent = {'device': 'Sample device', 'eventClass': ...
|
Inherited from CmdBase :
doesLogging
|
Method Details |
---|
buildOptions(self)basic options setup sub classes can add more options here |
getXmlRpcProxy(self)Returns xmlrpc proxy, creating on if the instance doesn't already have one. |
parseEventsFile(self, filepath=None)Not much actual parsing going on here, just importing the given file. |
sendEvents(self, events)events is a list of dictionaries with details of events to send. This sends those events via the xmlrpc proxy. |
sendEventsFromFile(self, filepath=None)Parse the given file (or the file specified at init) and send the files. |
sendSampleEvents(self, repeat=1)Sends the sample event and corresponding clear event. Repeats this as many times as specified by repeat. |
sendSampleWithDelayedClear(self, repeat=1, delay=30)Sends sample event then after a delay sends the clear event, repeating as specified. |
Class Variable Details |
---|
sampleClear
|
sampleEvent
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:13 2007 | http://epydoc.sf.net |