Files
Umbraco-CMS/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs

27 lines
964 B
C#
Raw Normal View History

using System.Collections.Generic;
2020-03-16 14:02:08 +01:00
using System.Linq;
using Umbraco.Core.Configuration.HealthChecks;
namespace Umbraco.Core.Configuration.Models
2020-03-16 14:02:08 +01:00
{
public class HealthChecksSettings
2020-03-16 14:02:08 +01:00
{
public IEnumerable<DisabledHealthCheck> DisabledChecks { get; set; } = Enumerable.Empty<DisabledHealthCheck>();
2020-03-18 11:29:29 +01:00
public HealthCheckNotificationSettings NotificationSettings { get; set; } = new HealthCheckNotificationSettings();
2020-03-16 14:02:08 +01:00
public class HealthCheckNotificationSettings
2020-03-16 14:02:08 +01:00
{
public bool Enabled { get; set; } = false;
2020-03-16 14:02:08 +01:00
public string FirstRunTime { get; set; }
2020-03-16 14:02:08 +01:00
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>();
2020-03-16 14:02:08 +01:00
}
}
}