Files
git.stella-ops.org/src/Notifier/StellaOps.Notifier/StellaOps.Notifier.Worker/Options/EgressSloOptions.cs
master 10212d67c0
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled
Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized function calls.
2025-11-20 07:50:52 +02:00

17 lines
473 B
C#

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);
}