mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 15:00:54 +00:00
Fixed: Notifiarr Health Issue Level
ref Sonarr 5938c38bc3a76d1f1e105fb54d5d7f59aa207278 (cherry picked from commit 6f0a2de5053ccb859b4ffbe1e84b4f3e0f7ef9c9)
This commit is contained in:
parent
4d16da8ea2
commit
8522991f7b
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
using System.Linq;
|
||||
using FluentValidation.Results;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Core.HealthCheck;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Notifiarr
|
||||
{
|
||||
|
@ -87,7 +88,7 @@ public override void OnHealthIssue(HealthCheck.HealthCheck healthCheck)
|
|||
var variables = new StringDictionary();
|
||||
|
||||
variables.Add("Lidarr_EventType", "HealthIssue");
|
||||
variables.Add("Lidarr_Health_Issue_Level", nameof(healthCheck.Type));
|
||||
variables.Add("Lidarr_Health_Issue_Level", Enum.GetName(typeof(HealthCheckResult), healthCheck.Type));
|
||||
variables.Add("Lidarr_Health_Issue_Message", healthCheck.Message);
|
||||
variables.Add("Lidarr_Health_Issue_Type", healthCheck.Source.Name);
|
||||
variables.Add("Lidarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);
|
||||
|
|
Loading…
Reference in a new issue