// Copyright (c) Umbraco. // See LICENSE for more details. using System.ComponentModel; using Umbraco.Cms.Core.HealthChecks; namespace Umbraco.Cms.Core.Configuration.Models; /// /// Typed configuration options for healthcheck notification method settings. /// public class HealthChecksNotificationMethodSettings { internal const bool StaticEnabled = false; internal const string StaticVerbosity = "Summary"; // Enum internal const bool StaticFailureOnly = false; /// /// Gets or sets a value indicating whether the health check notification method is enabled. /// [DefaultValue(StaticEnabled)] public bool Enabled { get; set; } = StaticEnabled; /// /// Gets or sets a value for the health check notifications reporting verbosity. /// [DefaultValue(StaticVerbosity)] public HealthCheckNotificationVerbosity Verbosity { get; set; } = Enum.Parse(StaticVerbosity); /// /// Gets or sets a value indicating whether the health check notifications should occur on failures only. /// [DefaultValue(StaticFailureOnly)] public bool FailureOnly { get; set; } = StaticFailureOnly; /// /// Gets or sets a value providing provider specific settings for the health check notification method. /// public IDictionary Settings { get; set; } = new Dictionary(); }