From bdf058ab5c936463a022f62ffbb55bb71c26e856 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 12 Mar 2025 19:52:15 +0100 Subject: More work --- MatrixContentFilter/MatrixContentFilterConfiguration.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'MatrixContentFilter/MatrixContentFilterConfiguration.cs') diff --git a/MatrixContentFilter/MatrixContentFilterConfiguration.cs b/MatrixContentFilter/MatrixContentFilterConfiguration.cs index 57537f0..fb7e8f3 100644 --- a/MatrixContentFilter/MatrixContentFilterConfiguration.cs +++ b/MatrixContentFilter/MatrixContentFilterConfiguration.cs @@ -10,9 +10,24 @@ public class MatrixContentFilterConfiguration { public string AppMode { get; set; } = "bot"; public string AsyncQueueImplementation { get; set; } = "lifo"; - + public SanityCheckConfiguration SanityCheck { get; set; } = new(); + public OpenTelemetryConfiguration OpenTelemetry { get; set; } = new(); + public class ConcurrencyLimitsConfiguration { public int Redactions { get; set; } = 1; public int LogMessages { get; set; } = 1; } + + public class SanityCheckConfiguration { + public bool Enabled { get; set; } = false; + public int MaxConcurrency { get; set; } = 1; + public TimeSpan Interval { get; set; } = TimeSpan.FromMinutes(5); + } + + public class OpenTelemetryConfiguration { + public bool Enabled { get; set; } = false; + public string Endpoint { get; set; } + public string ServiceName { get; set; } + public string Environment { get; set; } + } } -- cgit 1.5.1