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

Type Event

object --+
         |
        Event

Known Subclasses:
EventHeartbeat, MailEvent, SyslogEvent, ZEvent

Event that lives independant of zope context. As interface that allows it to be persisted to/from the event backend. dedupid, evid, device, ipAddress, component, eventClass, eventGroup, eventKey, facility, severity, priority, summary, stateChange, firstTime, lastTime, count, prodState, manager, agent, DeviceClass, Location, Systems, DeviceGroups,
Method Summary
  __init__(self, rcvtime, **kwargs)
  clearClasses(self)
Return a list of classes that this event clears.
  getDataList(self, fields)
return a list of data elements that map to the fields parameter.
  getDedupFields(self, default)
Return list of dedupid fields.
  getEventData(self)
return an list of event data
  getEventFields(self)
return an array of event fields tuples (field,value)
  updateFromDict(self, data)
Update event from dict.
  updateFromFields(self, fields, data)
Update event from list of fields and list of data values.
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

clearClasses(self)

Return a list of classes that this event clears. if we have specified clearClasses always return them if we ave a 0 severity return ourself as well.

getDataList(self, fields)

return a list of data elements that map to the fields parameter.

getDedupFields(self, default)

Return list of dedupid fields.

getEventData(self)

return an list of event data

getEventFields(self)

return an array of event fields tuples (field,value)

updateFromDict(self, data)

Update event from dict. Keys that don't match attributes are put into the detail list of the event.

updateFromFields(self, fields, data)

Update event from list of fields and list of data values. They must have the same length. To be used when pulling data from the backend db.

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