Support & information center

Webhooks in watchRTC

watchRTC offers the ability to setup custom alerts. In order to catch these custom alerts in your application or external monitoring service, you can use webhooks.

Setting up webhooks in watchRTC

You configure your webhook in Settings | watchRTC:

The webhooks for watchRTC follow the testRTC webhook format alternatives.

When are 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.

watchRTC Webhook result

Below is an example of a body of the 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" } ]
Code language: JavaScript (javascript)

Was this article helpful?

Related Articles