The custom Event object provides the attributes listed in the following table; use the methods shown below in your custom object code to retrieve a value for each attribute:
Attribute |
Method |
Name |
event.getName() |
Description |
event.getDescription() |
Severity |
event.getSeverity() |
Date |
event.getDate() |
Asset |
event.getDevice() |
Asset Name |
event.getDevice().getName() |
Asset Serial Number |
event.getDevice().getSerialNumber() |
Model Number |
event.getDevice().getModel().getName() |
Missing |
event.getDevice().isMissing() |