# Suppress any events during maintenance window if evt.severity > 2: for mw in device.getMaintenanceWindows(): if mw.started is not None: evt.summary = 'Maintenance: %s' % evt.summary evt.severity = 2
As you can see, the transform uses the same objects classes that the local python API uses, so you should be able to retrieve just about anything from the system. Stay tuned next time when I outline the time-based suppression/escalation code that I use for certain events.
No comments:
Post a Comment