Skip to main content
Version: Current

Alert WebHook callback notification

After the threshold is triggered send alarm information and call the Webhook interface through post request to notify the recipient.

Operation steps

  1. 【Alarm notification】->【Add new recipient】 ->【Select WebHook notification method】-> 【Set WebHook callback address】 -> 【Confirm】

email

  1. Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】

Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.

email

WebHook callback POST body BODY content

Content format:JSON

{
"id":76456,
"target":"available",
"alertDefineId":232,
"priority":0,
"content":"监控紧急可用性告警: UN_CONNECTABLE",
"tag": {
"monitorId": 3543534545,
"monitorName":"API_poetry.didi.top"
},
"status":0,
"times":1,
"gmtCreate":"2022-02-25T13:32:13",
"gmtUpdate":"2022-02-25T13:32:13"
}
idinteger($int64) title: Alarm record entity primary key index ID
targetstring title: Alert target object: monitor availability-available metrics-app.metrics.field
alertDefineId integer($int64) title: Alarm definition ID associated with the alarm
prioritystring($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow
contentstring title: The actual content of the alarm notification
statusstring($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed
timesinteger($int32) title: Alarm threshold trigger times
firstTriggerTimeinteger($int64) title: Alarm trigger time (timestamp in milliseconds)
lastTriggerTimeinteger($int64) title: Alarm trigger time (timestamp in milliseconds)
nextEvalIntervalinteger($int64) title: Alarm evaluation interval (milliseconds)
tagsexample: {key1:value1}
gmtCreatestring($date-time) title: Record the latest creation time (timestamp in milliseconds)
gmtUpdatestring($date-time)

Webhook notification common issues

  1. WebHook callback did not take effect

    Please check whether there is any triggered alarm information in the alarm center.
    Please check whether the configured webhook callback address is correct.

Other issues can be fed back through the communication group ISSUE!