mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: Notifiarr Health Issue Level
ref Sonarr 5938c38bc3a76d1f1e105fb54d5d7f59aa207278
This commit is contained in:
parent
c23eea21fc
commit
6f0a2de505
@ -5,6 +5,7 @@
|
||||
using System.Linq;
|
||||
using FluentValidation.Results;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Core.HealthCheck;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Notifiarr
|
||||
{
|
||||
@ -139,7 +140,7 @@ public override void OnHealthIssue(HealthCheck.HealthCheck healthCheck)
|
||||
var variables = new StringDictionary();
|
||||
|
||||
variables.Add("Radarr_EventType", "HealthIssue");
|
||||
variables.Add("Radarr_Health_Issue_Level", nameof(healthCheck.Type));
|
||||
variables.Add("Radarr_Health_Issue_Level", Enum.GetName(typeof(HealthCheckResult), healthCheck.Type));
|
||||
variables.Add("Radarr_Health_Issue_Message", healthCheck.Message);
|
||||
variables.Add("Radarr_Health_Issue_Type", healthCheck.Source.Name);
|
||||
variables.Add("Radarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);
|
||||
|
Loading…
Reference in New Issue
Block a user