This page explains how to create and configure a custom webhook notifier.
Use a custom webhook notifier to connect your monitors to internal or external services. The webhook URL receives a POST request with a content type of application/json
together with any other headers you specify.
To create a custom webhook notifier, follow these steps:
.Action
has value Open
when the notification corresponds to a match monitor matching or a threshold monitor triggering, and has value Closed
when the notification corresponds to a threshold monitor resolving..MonitorID
is the unique identifier for the monitor associated with the notification..Body
is the message body associated with the notification. When the notification corresponds to a match monitor, this is the matching event data. When the notification corresponds to a threshold monitor, this provides information about the value that gave rise to the monitor triggering or resolving..Description
is the description of the monitor associated with the notification..QueryEndTime
is the end time applied in the monitor query that gave rise to the notification..QueryStartTime
is the start time applied in the monitor query that gave rise to the notification..Timestamp
is the time the notification was generated..Title
is the name of the monitor associated with the notification..Value
is the value that gave rise to the monitor triggering or resolving when the notification corresponds to a threshold monitor..MatchedEvent
is the event that matched the criteria of a match monitor.The example below is a custom webhook notification generated from a threshold monitor triggering. The body of a POST request sent to the webhook URL using the default template is the following:
The example template below formats the webhook message to match the expectations of incident.io using the monitor ID as the deduplication_key
.
This page explains how to create and configure a custom webhook notifier.
Use a custom webhook notifier to connect your monitors to internal or external services. The webhook URL receives a POST request with a content type of application/json
together with any other headers you specify.
To create a custom webhook notifier, follow these steps:
.Action
has value Open
when the notification corresponds to a match monitor matching or a threshold monitor triggering, and has value Closed
when the notification corresponds to a threshold monitor resolving..MonitorID
is the unique identifier for the monitor associated with the notification..Body
is the message body associated with the notification. When the notification corresponds to a match monitor, this is the matching event data. When the notification corresponds to a threshold monitor, this provides information about the value that gave rise to the monitor triggering or resolving..Description
is the description of the monitor associated with the notification..QueryEndTime
is the end time applied in the monitor query that gave rise to the notification..QueryStartTime
is the start time applied in the monitor query that gave rise to the notification..Timestamp
is the time the notification was generated..Title
is the name of the monitor associated with the notification..Value
is the value that gave rise to the monitor triggering or resolving when the notification corresponds to a threshold monitor..MatchedEvent
is the event that matched the criteria of a match monitor.The example below is a custom webhook notification generated from a threshold monitor triggering. The body of a POST request sent to the webhook URL using the default template is the following:
The example template below formats the webhook message to match the expectations of incident.io using the monitor ID as the deduplication_key
.