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

Class Event

source code

object --+
         |
        Event
Known Subclasses:
ZEvent.ZEvent, EventHeartbeat, MailProcessor.MailEvent, SyslogProcessing.SyslogEvent

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,

Instance Methods [hide private]
 
__init__(self, rcvtime=None, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getEventFields(self)
return an array of event fields tuples (field,value)
source code
 
getEventData(self)
return an list of event data
source code
 
updateFromFields(self, fields, data)
Update event from list of fields and list of data values.
source code
 
updateFromDict(self, data)
Update event from dict.
source code
 
clearClasses(self)
Return a list of classes that this event clears.
source code
 
getDataList(self, fields)
return a list of data elements that map to the fields parameter.
source code
 
getDedupFields(self, default)
Return list of dedupid fields.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, rcvtime=None, **kwargs)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

updateFromFields(self, fields, data)

source code 
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.

updateFromDict(self, data)

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

clearClasses(self)

source code 
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.