1
4

1 回答 1

1

您可以在 Startup.cs 中配置 Webhook。

services.AddHealthChecksUI(options => {
            options.AddWebhookNotification("email",
                uri: "http://localhost:5008/api/noti/email", 
                payload: "{ \"message\": \"Webhook report for [[LIVENESS]]: [[FAILURE]] - Description: [[DESCRIPTIONS]]\"}",
                restorePayload: "{ \"message\": \"[[LIVENESS]] is back to life\"}");
        }).AddInMemoryStorage();
于 2021-08-02T06:02:28.903 回答