2020-08-24 09:29:40 +02:00
|
|
|
|
using System.Collections.Generic;
|
2020-03-16 14:02:08 +01:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using Umbraco.Core.Configuration.HealthChecks;
|
|
|
|
|
|
|
2020-08-24 09:29:40 +02:00
|
|
|
|
namespace Umbraco.Core.Configuration.Models
|
2020-03-16 14:02:08 +01:00
|
|
|
|
{
|
2020-08-24 09:29:40 +02:00
|
|
|
|
public class HealthChecksSettings
|
2020-03-16 14:02:08 +01:00
|
|
|
|
{
|
2020-09-14 21:27:31 +02:00
|
|
|
|
public IEnumerable<DisabledHealthCheck> DisabledChecks { get; set; } = Enumerable.Empty<DisabledHealthCheck>();
|
2020-03-18 11:29:29 +01:00
|
|
|
|
|
2020-08-24 09:29:40 +02:00
|
|
|
|
public HealthCheckNotificationSettings NotificationSettings { get; set; } = new HealthCheckNotificationSettings();
|
2020-03-16 14:02:08 +01:00
|
|
|
|
|
2020-08-24 09:29:40 +02:00
|
|
|
|
public class HealthCheckNotificationSettings
|
2020-03-16 14:02:08 +01:00
|
|
|
|
{
|
2020-08-24 09:29:40 +02:00
|
|
|
|
public bool Enabled { get; set; } = false;
|
2020-03-16 14:02:08 +01:00
|
|
|
|
|
2020-08-24 09:29:40 +02:00
|
|
|
|
public string FirstRunTime { get; set; }
|
2020-03-16 14:02:08 +01:00
|
|
|
|
|
2020-08-24 09:29:40 +02:00
|
|
|
|
public int PeriodInHours { get; set; } = 24;
|
|
|
|
|
|
|
|
|
|
|
|
public IReadOnlyDictionary<string, INotificationMethod> NotificationMethods { get; set; } = new Dictionary<string, INotificationMethod>();
|
|
|
|
|
|
|
2020-09-14 21:27:31 +02:00
|
|
|
|
public IEnumerable<DisabledHealthCheck> DisabledChecks { get; set; } = Enumerable.Empty<DisabledHealthCheck>();
|
2020-03-16 14:02:08 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|