Started implementing metrics system

This commit is contained in:
2025-05-23 17:15:19 +02:00
parent 565d9a5a4d
commit f3a35bd62a
7 changed files with 203 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ public class AppConfiguration
public DevelopmentConfig Development { get; set; } = new();
public ClientConfig Client { get; set; } = new();
public KestrelConfig Kestrel { get; set; } = new();
public MetricsData Metrics { get; set; } = new();
public class ClientConfig
{
@@ -59,4 +60,10 @@ public class AppConfiguration
public int UploadLimit { get; set; } = 100;
public string AllowedOrigins { get; set; } = "*";
}
public class MetricsData
{
public bool Enable { get; set; } = false;
public int Interval { get; set; } = 15;
}
}