How to get the alert details to automate method,which is triggered by a alert event

Hi All
So what i am trying to achieve is on a alert create a snow incident

So when a alert ie event is triggered it call my method create_snow_incident ,
I get the vm name from $evm.root[‘vm’] and object type from $evm.root[‘vmdb_object_type’]
The problem i am facing how to get the description of alert and all the other alert event parameters in automate method which creates the snow incident

can some one help or provide some reference for the similar implementation

This sloved
Got the info from the $evm[root] object

If it helps, there’s an example of extending event handling using Automate here:

Although that example is Kubernetes-specific, you can use the technique to get the details in the event_stream object for any kind of event.

Hope this helps,
pemcg

1 Like