From b8a3f0989146422002c1a715ee2c94528893d2f8 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Wed, 14 Jul 2021 16:48:11 -0500 Subject: [PATCH] Fixed: Notifiarr Health Issue Level ref Sonarr 5938c38bc3a76d1f1e105fb54d5d7f59aa207278 (cherry picked from commit 6f0a2de5053ccb859b4ffbe1e84b4f3e0f7ef9c9) --- src/NzbDrone.Core/Notifications/Notifiarr/Notifiarr.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Notifiarr/Notifiarr.cs b/src/NzbDrone.Core/Notifications/Notifiarr/Notifiarr.cs index 4e4c38b08..2eb36a552 100644 --- a/src/NzbDrone.Core/Notifications/Notifiarr/Notifiarr.cs +++ b/src/NzbDrone.Core/Notifications/Notifiarr/Notifiarr.cs @@ -1,8 +1,10 @@ +using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using FluentValidation.Results; using NzbDrone.Common.Extensions; +using NzbDrone.Core.HealthCheck; namespace NzbDrone.Core.Notifications.Notifiarr { @@ -82,7 +84,7 @@ namespace NzbDrone.Core.Notifications.Notifiarr var variables = new StringDictionary(); variables.Add("Readarr_EventType", "HealthIssue"); - variables.Add("Readarr_Health_Issue_Level", nameof(healthCheck.Type)); + variables.Add("Readarr_Health_Issue_Level", Enum.GetName(typeof(HealthCheckResult), healthCheck.Type)); variables.Add("Readarr_Health_Issue_Message", healthCheck.Message); variables.Add("Readarr_Health_Issue_Type", healthCheck.Source.Name); variables.Add("Readarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);