cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to send Severity Levels of CUSTOM events in http request Template to Incident Management Apps

Sunil.Agarwal
AppDynamics Team

It's important to ensure that the severity levels of custom events are properly communicated to Incident management apps (like ServiceNow) for effective incident management.

Screenshot 2023-04-02 at 9.36.52 AM.png

 

Here is the Code Snippet to  send Severity of custom events in http request.

 

#if($event.eventType == "CUSTOM")
     #if($latestEvent.severity == "INFO")
        ,"severity": "0"
     #elseif($latestEvent.severity =="WARN" )
	,"severity": "1"
     #elseif($latestEvent.severity == "ERROR" )
	,"severity": "3"
#end

 

 

Note:  Use the Severity Level number based on severity level defined in destination Incident Management App.

0 REPLIES 0