# Dotcom Monitor

[<mark style="color:blue;">Dotcom Monitor</mark>](https://www.dotcom-monitor.com/) monitors performance, functionality, and uptime from real browsers to accurately understand how your web pages, web applications, APIs, and services are performing for users in real time.

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

### How to integrate Dotcom Monitor with Squadcast

#### In Squadcast: Using Dotcom Monitor 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 **Dotcom Monitor.** Copy the displayed **Webhook URL** to [configure](#in-dotcom-monitor-create-a-squadcast-webhook) it within **Dotcom Monitor**. 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-c914352e4a1de71e1a0b9c29508a2b1180db1ee5%2Fdotcom_monitor_1.png?alt=media)

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

#### In Dotcom Monitor: Create a Squadcast Webhook

**(1)** From your home page, click on the **Configure** > **Notification Groups** and **New Group**

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

**(2)** Provide **Group Name** and click on **New Address** button

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

**(3)** Select **HTTP Webhook**, paste previously copied webhook URL into **Webhook URL** field and select **Request Type** as **Post**

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

**(4)** In **Post Data** section, select **Data Type** as `Raw`, **Content Type** as `Json` and click on expand icon in **Body** field

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

**(5)** Select **Json**, paste below in textbox and click on **Done**

```json
{
    "devicename" : "@Model.Site_Name",
    "taskName" : "@Model.FirstErrorResponse.Task.Name",
    @if (@Model.FirstErrorResponse.AllErrors != null){
        <text>
        "error" : {
        "ErrorType":"@Model.FirstErrorResponse.AllErrors[0].ErrorType",
        "ErrorCode":"@Model.FirstErrorResponse.AllErrors[0].ErrorCode",
        "Reason":"@Model.FirstErrorResponse.AllErrors[0].Reason"
        },
        "Status": "Error",
        </text>
    }
    @if (@Model.FirstErrorResponse.AllErrors == null) {
    <text>
        "Status":"Ok",
    </text>
    }

    "StartMonitorDowntime" : "@Model.StartMonitorDowntime",
    "MonitorName": "@Model.RootResponse.Monitor.Name",
    "MonitoringTime": "@Model.Monitor_DateTime",
    "PlatformType": "@Model.RootResponse.Device.PlatformType",
    "DeviceReportingUrl": "@Model.OnlineReportLink?CUID=@Model.OnlineReportCUID"
}
```

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

**Configuring Alerts for Device**

**(1)** Within the **Device Manager** tab, edit existing device or add new device. Under **Alert** tab click on **Add Group** button, select **Squadcast Notification** and click on **Apply**

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

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

**(2)** check both **False Positive Check**, **Send Uptime Alert** and click on **Save And Close**

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

Now, every time there is an alert for your device in Dotcom Monitor, the alert will be sent to Squadcast and an incident will be triggered. Similarly, if the alert gets resolved within Dotcom Monitor, it will get **auto-resolved** in Squadcast as well.

That is it, your integration is complete and you are good to go!

*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/dotcom_monitor.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.
