Make sure to add the AppDynamics integration and copying the webhook.
{% content-ref url="create-integration-and-service-on-dashboard.md" %} create-integration-and-service-on-dashboard.md {% endcontent-ref %}
From the dashboard, go to the Alert & Respond menu.
Select HTTP Request Templates.
Add a Custom Templating Variable named sc_event_type
and the default value as triggered
.
Paste the Spike webhook URL
Paste the webhook provided below and add success criteria
{
"description": "${latestEvent.displayName} on ${latestEvent.node.name}",
"client": "AppDynamics",
"client_url": "${controllerUrl}",
"event_type": "${sc_event_type}",
"incident_key": "${latestEvent.node.name} - ${latestEvent.application.name}",
"details": {
"event_name": "${latestEvent.displayName}",
"message": "${latestEvent.eventMessage}",
"summary": "${latestEvent.summaryMessage}",
"event_id": "${latestEvent.id}",
"event_time": "${latestEvent.eventTime}",
"event_type_key": "${latestEvent.eventTypeKey}",
"node_name": "${latestEvent.node.name}",
"application_name": "${latestEvent.application.name}",
"event_type": "${latestEvent.eventType}",
"guid": "${latestEvent.guid}",
"severity": "${latestEvent.severity}"
}
}
{% hint style="success" %} This integration auto resolves {% endhint %}