Package Products :: Package ZenEvents :: Package events2 :: Module processing :: Class AddDeviceContextAndTagsPipe |
[hide private]
[frames] | no frames]

# Class AddDeviceContextAndTagsPipe

source code

            object --+
                     |
    EventProcessorPipe --+
                         |
                        AddDeviceContextAndTagsPipe

Known Subclasses:
  - UpdateDeviceContextAndTagsPipe

Adds device and component info to the context and event proxy.

Instance Methods | [hide private]
_addDeviceOrganizerNames(self, orgs, orgtypename, evtproxy, proxydetailkey, asDelimitedList=False) | source code
_addDeviceContext(self, eventContext, device) | source code
_addDeviceOrganizers(self, eventContext, orgs) | source code
_findTypeIdAndElement(self, eventContext, sub_element) | source code
__call__(self, eventContext) Called in a chain, must return modified eventContext. | source code
Inherited from `EventProcessorPipe`: `__init__`

Class Variables | [hide private]
| dependencies = `[IdentifierPipe]`
| DEVICE_DEVICECLASS_TAG_KEY = `'zenoss.device.device_class'`
| DEVICE_LOCATION_TAG_KEY = `'zenoss.device.location'`
| DEVICE_SYSTEMS_TAG_KEY = `'zenoss.device.systems'`
| DEVICE_GROUPS_TAG_KEY = `'zenoss.device.groups'`
| DEVICE_TAGGERS = `{DEVICE_DEVICECLASS_TAG_KEY:(lambda device: d`...``

Method Details | [hide private]

### __call__(self, eventContext) (Call operator) | source code
Called in a chain, must return modified eventContext. Overrides: EventProcessorPipe.__call__ (inherited documentation)

Class Variable Details | [hide private]

  ### DEVICE_TAGGERS Value:
      {DEVICE_DEVICECLASS_TAG_KEY:(lambda device: device.deviceClass(), 'Dev
      iceClass'), DEVICE_LOCATION_TAG_KEY:(lambda device: device.location(),
       'Location'), DEVICE_SYSTEMS_TAG_KEY:(lambda device: device.systems(),
       'Systems'), DEVICE_GROUPS_TAG_KEY:(lambda device: device.groups(), 'D
      eviceGroups'),}