Drop Events with Transforms

From Zenoss Wiki
Revision as of 14:40, 22 November 2013 by Crouthamela (Talk | contribs)$7

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Searching a Summary

This one is pretty simple to modify to your needs:

 import re
 regex = re.compile('Text to match which will then be dropped')
 if re.match(regex, evt.summary):
     evt._action = "drop"