# Healthchecks

[<mark style="color:blue;">Healthchecks</mark>](https://healthchecks.io/) is a cron job monitoring service. It listens for HTTP requests and emails ("pings") from your cron jobs and scheduled tasks ("checks").

Route detailed alerts from Healthchecks to the right users in Squadcast.

### Using Healthchecks as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4fbd74e7ca0b30173c47a1d58ed6a0804a0465aa%2FAlert_Sources.png?alt=media\&token=aaca6610-9d18-4dd4-9cf5-320042f326f1)

1. Select **Healthchecks**. Copy the displayed **Webhook URL** to [configure](#create-a-squadcast-webhook-alert-in-healthchecks) it within **Healthchecks.** Finish by clicking **Add Alert Source** -> **Done**.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-81c2593fb606ed8a290bb85a2d617592f9263258%2FHealthchecks.png?alt=media\&token=714bd032-25e3-4ff1-87c2-60b67767585f)

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### Create a Squadcast Webhook Alert in Healthchecks

**(1)** Login to your Healthchecks dashboard. Select your desired project and head over to the **Integrations** tab.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-268280f3cd42961c56885870ddccdb665bffbcbd%2Fhealthchecks_2.png?alt=media)

**(2)** Under the **Integrations** tab, select **Webhook** and click on **Add Integration**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-aebd811f2bfa9fb31c6c591aa925f473b3524796%2Fhealthchecks_3.png?alt=media)

**(3)** Now, put in the **Name** and paste the previously copied Squadcast Webhook URL in the **URL** place holder for both **down** and **up** scenarios. Select **POST** as the HTTP Request menthod. Paste the json mentioned below inside the **Request Body** box. Then click on **Save**

```json
{
  "STATUS": "$STATUS",
  "CODE": "$CODE",
  "NOW": "$NOW",
  "NAME": "$NAME",
  "TAGS": "$TAGS"
}
```

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-631d0f2fb7d45b44a154ffbbbabf2ed448cf03a4%2Fhealthchecks_4.png?alt=media)

That's it, you are good to go! Your Healthchecks integration is now complete.

Whenever Healthchecks fires an alert, an incident will be created in Squadcast for it. Also, when an alert is resolved in Healthchecks, the corresponding incident gets **auto-resolved** in Squadcast.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*
