Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
04-02-2023
09:42 AM
- last edited on
04-03-2023
10:51 AM
by
Claudia.Landiva
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.
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.
06-01-2024 05:28 PM
I am dealing with a similar issue
we use a HTTP template that works for the health rule based events to call webex and opsgenie but work work for custom events ,it is failing with the 400 error .
at this point my theory is the template variable exposed by the custom event and the healthrule-based event are not the same and as a result, the HTTP template used for the healthrule-based event is not working for the custom event
any thoughts? on this also any documentation for the custom events related template variables ?
06-10-2024 04:04 PM - edited 06-10-2024 04:13 PM
Hi @Pranaychandra.Ravi ,
For the CUSTOM event, the eventType will be "CUSTOM," which can be used for further validation. Other variables shouldn't cause any issues. However, from your question, I couldn't determine which parameter is causing the issue when it receive atOPsGenie end. If you could share the HTTP template with us, I would be happy to review it to identify the problematic parameter.
Additionally, is there any way to determine why Webex and Opsgenie are unable to process this? What response are they expecting that is missing in the CUSTOM Events scenarios?
Here is the page with list of Predefined Templating Variables - https://docs.appdynamics.com/appd/24.x/24.6/en/cisco-appdynamics-essentials/alert-and-respond/action...
The template uses Apache Velocity version 1.7 to process the variables. See the Velocity User Guide for details about usage.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form