Fixed: Custom Script Health Issue Level

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
pull/1739/head
Qstick 2 years ago
parent 2086ae1e2c
commit c8ae6b0299

@ -9,6 +9,7 @@ using NzbDrone.Common.Extensions;
using NzbDrone.Common.Processes;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Books;
using NzbDrone.Core.HealthCheck;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
@ -205,7 +206,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
var environmentVariables = new StringDictionary();
environmentVariables.Add("Readarr_EventType", "HealthIssue");
environmentVariables.Add("Readarr_Health_Issue_Level", nameof(healthCheck.Type));
environmentVariables.Add("Readarr_Health_Issue_Level", Enum.GetName(typeof(HealthCheckResult), healthCheck.Type));
environmentVariables.Add("Readarr_Health_Issue_Message", healthCheck.Message);
environmentVariables.Add("Readarr_Health_Issue_Type", healthCheck.Source.Name);
environmentVariables.Add("Readarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);

Loading…
Cancel
Save