Fix build and code structure improvements. New but essential UI functionality. CI improvements. Documentation improvements. AI module improvements.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
namespace StellaOps.Router.Gateway.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Configuration options for health monitoring.
|
||||
/// </summary>
|
||||
public sealed class HealthOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the configuration section name.
|
||||
/// </summary>
|
||||
public const string SectionName = "Router:Health";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the threshold after which a connection is considered stale (no heartbeat).
|
||||
/// Default: 30 seconds.
|
||||
/// </summary>
|
||||
public TimeSpan StaleThreshold { get; set; } = TimeSpan.FromSeconds(30);
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the threshold after which a connection is considered degraded.
|
||||
/// Default: 15 seconds.
|
||||
/// </summary>
|
||||
public TimeSpan DegradedThreshold { get; set; } = TimeSpan.FromSeconds(15);
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the interval at which to check for stale connections.
|
||||
/// Default: 5 seconds.
|
||||
/// </summary>
|
||||
public TimeSpan CheckInterval { get; set; } = TimeSpan.FromSeconds(5);
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of ping measurements to keep for averaging.
|
||||
/// Default: 10.
|
||||
/// </summary>
|
||||
public int PingHistorySize { get; set; } = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user