Skip to content

Commit

Permalink
Add health checks results to payload
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjanwestendorp authored and busrasengul committed Mar 5, 2024
1 parent 3b4ca0b commit ce769ff
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@ public HealthCheckCompletedWebhookEvent(IWebhookFiringService webhookFiringServi

public override string Alias => Constants.WebhookEvents.Aliases.HealthCheckCompleted;

public override object? ConvertNotificationToRequestPayload(HealthCheckCompletedNotification notification) => notification.HealthCheckResults;
public override object? ConvertNotificationToRequestPayload(HealthCheckCompletedNotification notification) =>
new
{
notification.HealthCheckResults.AllChecksSuccessful,
notification.HealthCheckResults.ResultsAsDictionary
};
}

0 comments on commit ce769ff

Please sign in to comment.