Files
Umbraco-CMS/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs
Bjarke Berg ce2da18304 Fixed based on review comments
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-14 21:27:31 +02:00

27 lines
964 B
C#

using System.Collections.Generic;
using System.Linq;
using Umbraco.Core.Configuration.HealthChecks;
namespace Umbraco.Core.Configuration.Models
{
public class HealthChecksSettings
{
public IEnumerable<DisabledHealthCheck> DisabledChecks { get; set; } = Enumerable.Empty<DisabledHealthCheck>();
public HealthCheckNotificationSettings NotificationSettings { get; set; } = new HealthCheckNotificationSettings();
public class HealthCheckNotificationSettings
{
public bool Enabled { get; set; } = false;
public string FirstRunTime { get; set; }
public int PeriodInHours { get; set; } = 24;
public IReadOnlyDictionary<string, INotificationMethod> NotificationMethods { get; set; } = new Dictionary<string, INotificationMethod>();
public IEnumerable<DisabledHealthCheck> DisabledChecks { get; set; } = Enumerable.Empty<DisabledHealthCheck>();
}
}
}