Event class transform

When a generated event occurs, it has an event class assigned to it. This causes the event class mapping step to be skipped. The only way to affect the fields of one of these events is through the event class’ configuration properties and transform.

To access the transform for an event class:

  1. Navigate to the event class from Events > Event Classes.
  2. From the drop-down list, select Transforms.
  3. Enter information into the dialog box (as Python code), and then click the Save button in the upper-right corner. As you develop your transform, you can revert back to the last saved state by clicking the Revert this Transform button.
The objects available in this Python context are evt (the event); and, if the event matches a device that exists in the system database, a device object.

The following example shows how you can validate that a device object exists before using it to drop events from a particular location.

if device and "Hawaii" in device.getLocationName(): evt._action = "drop"