# Freshping

[<mark style="color:blue;">Freshping</mark>](https://www.freshworks.com/website-monitoring/) is a simple Uptime and Performance monitoring tool which keeps track of the performance and downtime of websites, APIs, web services, and web applications with real-time alerts.

Route detailed monitoring alerts from Freshping to the right users in Squadcast.

### How to integrate Freshping with Squadcast

### In Squadcast: Using Freshping 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)

2\. Select **Freshping**. Copy the displayed **Webhook URL** to [configure](#create-a-squadcast-webhook-in-freshping) it within **Freshping.** 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-4ffc046b2e8b6f46401b6e414b46446d60a073ec%2FFreshping.png?alt=media\&token=58721fb6-982c-4387-87ba-2cc44d469da7)

{% hint style="warning" %} <mark style="color:orange;">**Important**</mark>**:**

When an alert source turns <mark style="color:green;">Active</mark>, 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 <mark style="color:green;">active</mark> if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### Create a Squadcast Webhook in Freshping

#### In Freshping: Create a Squadcast Webhook

**(1)** Login to your Freshping web console and navigate to **Settings**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-f622ec68ae09eee82631e412337b43e7f9dc4f0f%2Ffreshping_2.png?alt=media\&token=d9e790a3-8de3-4ce8-bb34-50bc794b424a)

**(2)** Then, select **Integrations**. Scroll down to the **Webhook** section and select **+ Create Integration**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-ace0901d9547eb8c5932f173baca8de254807a4e%2Ffreshping_3.png?alt=media\&token=bbfd8d02-7b55-498f-aa98-991c03ddf6fc)

**(3)** Here:

**(a)** Give a meaningful under **Webhook Name**

**(b)** Select the applicable **Event Type** from the drop-down

**(c)** Choose for what **Checks** of yours should Squadcast's Webhook be triggered for

**(d)** Paste the previously copied Squadcast Webhook under **Trigger the webhook**

**(e)** Ensure the **Requires Basic Authentication** checkbox is **unchecked**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4059bd880b5c1713820a2b6c6de2480b66af0016%2Ffreshping_4.png?alt=media\&token=49a16ac9-4f00-42e6-aa60-e9483aeac90e)

**(f)** Next, you can either choose **Simple** or **Advanced** options for the `JSON Encoding`. At the bare minimum, we expect the below information for the integration to work fine:

```json
{
 "text": "{text}",
 "check_id": "{check_id}",
 "check_name": "{check_name}",
 "check_url": "{check_url}",
 "request_location": "{request_location}",
 "request_datetime": "{request_datetime}",
 "request_timeout": "{request_timeout}",
 "response_state": "{response_state}",
 "response_status_code": "{response_status_code}",
 "response_time": "{response_time}",
 "response_summary": "{response_summary}"
}
```

In addition to this, if you wish to send more data to Squadcast via this Webhook, ensure the data is **valid** `JSON`.

**(g)** Click on **Save**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-c791ef66c03cf3e52728b66eeee9884ef204e96d%2Ffreshping_5.png?alt=media\&token=c10d52ea-2e2c-4ac1-8e65-004341dd45fe)

**(4)** You can verify the creation of your Webhook for Squadcast on the **Integrations** page

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-cf84180c48f876be7d8efc2e27bc80a6a0cf87a1%2Ffreshping_6.png?alt=media\&token=d5aefe3c-e0ff-466a-b7bc-2297162a0f00)

**NOTE**: When you click on the **Test** button, Freshping sends out a test alert that would trigger a test incident in Squadcast.

That is it, you are good to go!

Now, whenever Freshping generates an alert, an incident will be triggered for it in Squadcast. Additionally, once the alert that triggered the incident is resolved in Freshping, the corresponding Squadcast incident would get **resolved automatically.**

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.squadcast.com/integrations/alert-source-integrations-native/freshping.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
