Discussion:
Transforms in 4.2
jcurry
2012-09-24 18:01:46 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Transforms in 4.2"

To view the discussion, visit: http://community.zenoss.org/message/68707#68707

--------------------------------------------------------------
The whole architecture of events has changed in 4.2.  I have transforms in 3.x for SNMP events like:

for attr in dir(evt):
  if attr.startswith('enterprises.123.'):
    evt.myRestOfOID=attr.replace('enterprises.123.','')
    evt.myFieldValue=getattr(evt,attr)
    evt.summary = ("Bingo! " + evt.myFieldValue)

This now does nothing - I think because evt no longer has an attribute that starts with 'enterprises.123' .  My suspicion is that  this attribute is now buried in the details attribute.  We now seem to have ZepRawEventProxy objects and EventDetailProxy objects but no documentation that documents these changes.

1) Does anyone (Zenoss???) have documentation that explains the change in event structure, the new object classes and how they relate to the old?
2) How do I rewrite my transform above?

Cheers,
Jane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68707#68707]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...