Package ZenEvents :: Module xtest :: Class XTest
[show private | hide private]
[frames | no frames]

Class XTest

CmdBase --+
          |
         XTest


Method Summary
  __init__(self, noopts)
  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)
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.
  sendEventsFromFile(self, filepath)
Parse the given file (or the file specified at init) and send the files.
  sendSampleEvents(self, repeat)
Sends the sample event and corresponding clear event.
  sendSampleWithDelayedClear(self, repeat, delay)
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
Overrides:
Products.ZenUtils.CmdBase.CmdBase.buildOptions

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

Type:
dict
Value:
{'component': 'Sample component',
 'device': 'Sample device',
 'eventClass': '/Status/Perf',
 'severity': 0,
 'summary': 'Clear event'}                                             

sampleEvent

Type:
dict
Value:
{'component': 'Sample component',
 'device': 'Sample device',
 'eventClass': '/Status/Perf',
 'severity': 4,
 'summary': 'Test event at 1187272493.79'}                             

Generated by Epydoc 2.1 on Thu Aug 16 09:55:13 2007 http://epydoc.sf.net