Skip to content

Commit 2df1479

Browse files
update webhook retry logic
1 parent 62536ce commit 2df1479

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/azure-monitor/alerts/action-groups.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -652,17 +652,17 @@ For information about pricing for supported countries/regions, see [Azure Monito
652652
653653
Webhook action groups use the following rules:
654654

655-
- A webhook call is attempted at most three times.
656-
- The first call waits 10 seconds for a response.
657-
- Between the first and second call, it waits 20 seconds for a response.
658-
- Between the second and third call, it waits 40 seconds for a response.
659-
- The call is retried if any of the following conditions are met:
655+
The retry logic below assumes that the failure is retriable. The status codes: 408, 429, 503, 504, or HttpRequestException, WebException, `TaskCancellationException` are considered “retriable”.
660656

661-
- A response isn't received within the timeout period.
662-
- One of the following HTTP status codes is returned: 408, 429, 503, 504, or `TaskCancellationException`.
663-
- If any one of the preceding errors is encountered, wait an additional 5 seconds for the response.
657+
When a webhook is invoked, if the first call fails, it will be retried at least 1 more time (retry), and up to 5 times (5 retries) at various delay intervals (5, 20, 40 seconds).
664658

665-
- If three attempts to call the webhook fail, no action group calls the endpoint for 15 minutes.
659+
- The delay between 1st and 2nd attempt is 5 seconds
660+
- The delay between 2nd and 3rd attempt is 20 seconds
661+
- The delay between 3rd and 4th attempt is 5 seconds
662+
- The delay between 4th and 5th attempt is 40 seconds
663+
- The delay between 5th and 6th attempt is 5 seconds
664+
665+
- After retries attempted to call the webhook fail, no action group calls the endpoint for 15 minutes.
666666

667667
For source IP address ranges, see [Action group IP addresses](../app/ip-addresses.md).
668668

0 commit comments

Comments
 (0)