Add authentication and improve server side configuration

This commit is contained in:
Stone_Red
2025-12-23 14:53:44 +01:00
parent 5819432c36
commit 55f26b3a92
14 changed files with 292 additions and 34 deletions
@@ -0,0 +1,19 @@
namespace RemoteExec.Server.Configuration;
public class MetricsConfiguration
{
/// <summary>
/// Minimum CPU usage difference (in percentage points) to trigger a metrics broadcast. Default is 1.0.
/// </summary>
public double CpuDifferenceThreshold { get; set; } = 1.0;
/// <summary>
/// Minimum memory usage difference (in bytes) to trigger a metrics broadcast. Default is 10 MB.
/// </summary>
public long MemoryDifferenceThreshold { get; set; } = 10 * 1024 * 1024;
/// <summary>
/// Broadcast interval in milliseconds. Default is 500 ms.
/// </summary>
public int BroadcastIntervalMs { get; set; } = 500;
}