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

# Class Event

source code

      twisted.spread.pb.Copyable --+
                                   |
    twisted.spread.pb.RemoteCopy --+
                                   |
                                  Event

Known Subclasses:
  - EventHeartbeat
  - , ZEvent.ZEvent
  - , MailProcessor.MailEvent

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, message, stateChange, firstTime, lastTime, count, prodState, DevicePriority, manager, agent, DeviceClass, Location, Systems, DeviceGroups,

Instance Methods | [hide private]
__init__(self, rcvtime=None, **kwargs) | 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

Method Details | [hide private]

### 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.