Use the dynamic model to define the new events that you want created. Then, you can use the Java API to toggle boolean flags. The VMware Smart Assurance MODEL Reference Guide and the VMware Smart Assurance Dynamic Modeling Tutorial provide examples of exporting new events.
If are using external instrumentation sources, you must use the "External" polling settings in AM/PM. To enable these, log into domain using the GUI, select the Domain Manager Administration Console > Polling and Thresholds. Once this is done, your instrumentation logic can set attributes in the instrumentation objects (follow the InstrumentedBy relationship in the Interface and IP objects).