# Integrate Spike with AppDynamics

### Service and Integration

Make sure to add the AppDynamics integration and copying the webhook.

{% content-ref url="create-integration-and-service-on-dashboard" %}
[create-integration-and-service-on-dashboard](https://docs.spike.sh/integrations-guideline/create-integration-and-service-on-dashboard)
{% endcontent-ref %}

### Using webhooks with AppDynamics

#### Step 1

From the dashboard, go to the Alert & Respond menu.

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-1af791bf0fcdb86c9be39b251011c2cbef25ef65%2Fimage%20\(98\).png?alt=media\&token=db73a770-9584-4fd3-ab95-c7ccf2284e96)

####

#### Step 2

Select HTTP Request Templates.

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-6b6c48b9d0b11ba26d6ca67296d47bbc9a81647a%2Fimage.png?alt=media\&token=f9ea1c05-872a-4241-95d1-149e2f0d19ea)

####

#### Step 3

Add a Custom Templating Variable named `sc_event_type` and the default value as `triggered`.\
Paste the Spike webhook URL

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-070a088da6fb6582ef9c4c68074d2a9703b493b5%2Fimage%20\(79\).png?alt=media\&token=f0ff2faa-f99f-4bb4-bec3-c1ff1699c59d)

#### Step 4

Paste the webhook provided below and add success criteria

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-cb714cdafcf222ab9732d79730956d302b9df7be%2Fimage.png?alt=media\&token=724e4773-13cd-4a28-9d0b-3a7f5d41efad)

```
{
    "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 %}
