Package Products :: Package ZenEvents :: Package events2 :: Module proxy :: Class ZepRawEventProxy |
[hide private]
[frames] | no frames]

# Class ZepRawEventProxy

source code

    object --+
             |
    EventProxy --+
                 |
                ZepRawEventProxy

Wraps an org.zenoss.protobufs.zep.ZepRawEvent and makes it look like an old style Event. It is the proper event proxy to use for transforms since transforms use _action and _clearClasses.

Instance Methods | [hide private]
__init__(self, zepRawEvent) | source code
__str__(self) | source code
_refreshClearClasses(self) | source code
_clearClasses(self, val) | source code
_action(self, val) | source code
eventClassMapping(self, val) | source code
Inherited from `EventProxy`: `DeviceClass`, `DeviceGroups`, `DevicePriority`, `Location`, `Systems`, `__getattr__`, `__setattr__`, `agent`, `component`, `created`, `dedupid`, `device`, `eventClass`, `eventClassKey`, `eventGroup`, `eventKey`, `eventState`, `evid`, `facility`, `ipAddress`, `message`, `monitor`, `ntevid`, `priority`, `prodState`, `resetReadOnly`, `setReadOnly`, `severity`, `summary`, `tags`, `updateFromDict`

Class Variables | [hide private]
| ACTION_HISTORY = `'history'`
| ACTION_DROP = `'drop'`
| ACTION_STATUS = `'status'`
| ACTION_HEARTBEAT = `'heartbeat'`
| ACTION_LOG = `'log'`
| ACTION_ALERT_STATE = `'alert_state'`
| ACTION_DETAIL = `'detail'`
| ACTION_STATUS_MAP = `{ACTION_HISTORY: STATUS_CLOSED, ACTION_STA`...``
| STATUS_ACTION_MAP = `{STATUS_NEW: ACTION_STATUS, STATUS_ACKNOWL`...``
Inherited from `EventProxy`: `DEVICE_CLASS_DETAIL_KEY`, `DEVICE_GROUPS_DETAIL_KEY`, `DEVICE_IP_ADDRESS_DETAIL_KEY`, `DEVICE_LOCATION_DETAIL_KEY`, `DEVICE_PRIORITY_DETAIL_KEY`, `DEVICE_SYSTEMS_DETAIL_KEY`, `PRODUCTION_STATE_DETAIL_KEY`

Method Details | [hide private]

### __init__(self, zepRawEvent) (Constructor) | source code
Overrides: EventProxy.__init__

### __str__(self) (Informal representation operator) | source code
Overrides: object.__str__ (inherited documentation)

### _clearClasses(self, val) | source code
Decorators: `@_clearClasses.setter`

### _action(self, val) | source code
Decorators: `@_action.setter`

### eventClassMapping(self, val) | source code
Decorators: `@eventClassMapping.setter`

Class Variable Details | [hide private]

  ### ACTION_STATUS_MAP Value:
      {ACTION_HISTORY: STATUS_CLOSED, ACTION_STATUS: STATUS_NEW, ACTION_DROP
      : STATUS_DROPPED, None: STATUS_NEW,}

  ### STATUS_ACTION_MAP Value:
      {STATUS_NEW: ACTION_STATUS, STATUS_ACKNOWLEDGED: ACTION_STATUS, STATUS
      _SUPPRESSED: ACTION_STATUS, STATUS_CLOSED: ACTION_HISTORY, STATUS_CLEA
      RED: ACTION_HISTORY, STATUS_DROPPED: ACTION_DROP, STATUS_AGED: ACTION_
      HISTORY, None: ACTION_STATUS,}