When a trigger fires, Automate creates a dataset called AMTrigger. The AMTrigger dataset has a field called Trigger which basically holds the name of the event that triggered the execution.
Each event or condition contains a unique name as shown below
AMTrigger.Trigger
|
Event Name
|
Event Log
|
AMEVENTLOGTRIGGER
|
File System
|
AMFILETRIGGER
|
Idle
|
AMIDLETRIGGER
|
Key
|
AMKEYTRIGGER
|
Performance
|
AMPERFORMANCETRIGGER
|
Process
|
AMPROCESSTRIGGER
|
Schedule
|
AMSCHEDULETRIGGER
|
Service
|
AMSERVICETRIGGER
|
SNMP Trap
|
AMSNMPTRIGGER
|
Startup
|
AMSTARTUPTRIGGER
|
Window
|
AMWINDOWTRIGGER
|
WMI
|
AMWMITRIGGER
|
by outputing %AMTrigger.Trigger% you should be able to get the info you are looking for