# Spike

[Spike](https://spike.sh) is an incident management platform with on-call schedules, escalations, and alerts by phone, SMS, Slack, and more.

When Oh Dear detects a problem, we send it to Spike. Spike opens an incident and pages whoever is on call. When the check recovers, we send that to Spike too. For downtime, broken links, and mixed content, Spike then resolves the incident for you.

## Setting up Spike

All we need from Spike is one URL. It belongs to an Oh Dear integration on one of your Spike services.

1. In Spike, open the service that should receive Oh Dear's alerts, or create a new one.
2. Add an integration and pick **Oh Dear** from the list.
3. Choose the escalation policy that should be paged.
4. Click **Copy Webhook**. You now have a URL that looks like `https://hooks.spike.sh/<token>/push-events`.

Keep that URL private. Anyone who has it can open incidents on your service.

## Connecting Oh Dear to Spike

Go to your [team notifications](https://ohdear.app/team-settings/notifications) page and click "Add configuration". Pick "Spike" from the list, paste the URL, and choose the events that should reach Spike.

We'll send those events for all your monitors. Want incidents for one monitor only? Add the same configuration on that monitor's notification settings page instead.

## Testing the integration

Open the dropdown next to the configuration and choose "Send test notification". Then choose "Show webhook log" in the same dropdown. It shows the calls we made to Spike in the last five days, with the response Spike sent back.

A `200` means Spike accepted the call. A `404` means Spike doesn't know the URL, for example because the integration was deleted. Copy a fresh URL from Spike and update the configuration.

## Which events open and resolve incidents

We send every event you selected to Spike, and Spike decides what to do with each one. Today, Spike resolves incidents by itself for downtime, broken links, and mixed content. Spike's own [Oh Dear guide](https://docs.spike.sh/integrations-guideline/integrate-spike-with-oh-dear) has the current list.

Some events never have a recovery, like "certificate changed" or "DNS record changed". If you don't want those to page anyone, leave them unchecked for this configuration.
