Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized function calls.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace StellaOps.Notifier.Worker.Options;
|
||||
|
||||
public sealed class EgressSloOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Webhook endpoint to receive SLO delivery signals. When null/empty, publishing is disabled.
|
||||
/// </summary>
|
||||
public string? Webhook { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Request timeout in seconds for the webhook call.
|
||||
/// </summary>
|
||||
public int TimeoutSeconds { get; set; } = 5;
|
||||
|
||||
public bool Enabled => !string.IsNullOrWhiteSpace(Webhook);
|
||||
}
|
||||
Reference in New Issue
Block a user