Skip to content

Commit 6f8aada

Browse files
authored
Merge pull request #422 from hookdeck/chore/alerts-payload-update
chore(docs): Update alert JSON structure
2 parents fc039a4 + ca4c6da commit 6f8aada

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

docs/pages/features/alerts.mdx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,22 @@ The `ALERT_CONSECUTIVE_FAILURE_COUNT` variable triggers an alert when the consec
1616

1717
```json
1818
{
19-
"topic": "alert.consecutive-failure",
20-
"timestamp": "2024-01-01T00:00:00Z",
19+
"topic": "alert.consecutive_failure",
20+
"timestamp": "2025-05-29T05:07:09.269672003Z",
2121
"data": {
22-
"max_consecutive_failures": 20,
23-
"consecutive_failures": 5,
24-
"will_disable": true,
25-
"destination": DestinationObject,
26-
"response": {
27-
"status": "500",
28-
"data": {
29-
"some": "value"
30-
}
22+
"event": {
23+
"id": "evt_id",
24+
"topic": "user.created",
25+
"metadata": {},
26+
"data": {}
27+
},
28+
"max_consecutive_failures": 3,
29+
"consecutive_failures": 3,
30+
"will_disable": false,
31+
"destination": {},
32+
"delivery_response": {
33+
"body": "{\"success\":false,\"verified\":false,\"payload\":{\"user_id\":\"userid\"}}",
34+
"status": 400
3135
}
3236
}
3337
}

0 commit comments

Comments
 (0)