Support & information center

Webhook support in watchRTC

watchRTC offers the ability to set up custom alerts. You can use webhooks in order to catch these custom alerts in your application or external monitoring service.

Setting up webhooks in watchRTC

  1. Navigate to Settings section
  2. Click the watchRTC tab
  3. Insert your chosen webhook format

The webhooks for watchRTC follow the testRTC webhook format alternatives.

When do webhooks fire in watchRTC?

Once a room is “closed” and analyzed by watchRTC, the custom alerts are checked against. If any of these custom rules apply, then a webhook will be invoked on that given room. The webhook is invoked on the room, detailing all peers and alerts associated with them.

You’ll get the webhook invoked on the room level, but you’ll know exactly which peers had which issues.

Example | watchRTC webhook result

Below is an example body from a watchRTC custom alert webhook. It indicates the time and roomId along with an array of the alerts for that room:

 "time": "2022-03-11T21:03:24.000Z",
 "roomId": "testrtclongmachineroom1",
 "notifications": [
     "peerId": "longmachine4",
     "calculation": "Call Setup Time 1595.00 > 1500",
     "metric": "callSetupTime",
     "value": "1595.00",
     "operator": ">",
     "threshold": "1500",
     "status": "warning"

Was this article helpful?

Related Articles