Files
Finlytic/FinlyticNews/Util/SettingKeys.cs
T

28 lines
1.5 KiB
C#

using FinlyticCore.Models.Settings;
namespace FinlyticNews.Util;
public static class SettingKeys
{
// --- Logging-Kanäle ---
public static readonly SettingKey<bool> NewsChannel = new("Logging.Channel.News", true);
public static readonly SettingKey<bool> MqttChannel = new("Logging.Channel.MQTT", true);
public static readonly SettingKey<bool> HealthPingChannel = new("Logging.Channel.Health", true);
// --- Scraping & Feed-Konfiguration ---
public static readonly SettingKey<int> ScrapeIntervalMinutes = new("Scraping.IntervalMinutes", 15);
public static readonly SettingKey<int> MaxArticlesPerFeed = new("Scraping.MaxArticlesPerFeed", 20);
public static readonly SettingKey<bool> EnableAutoScraping = new("Feature.EnableAutoScraping", true);
public static readonly SettingKey<int> HttpTimeoutSeconds = new("Scraping.HttpTimeoutSeconds", 20);
// --- KI & Sentiment-Konfiguration ---
public static readonly SettingKey<int> FinBertBatchSize = new("AI.FinBertBatchSize", 8);
public static readonly SettingKey<double> MinSentimentConfidence = new("AI.MinSentimentConfidence", 0.65);
// --- Daten-Retention & Cleanup ---
public static readonly SettingKey<int> ArticleRetentionDays = new("Data.ArticleRetentionDays", 90);
// --- N8N / Webhook-Konfiguration ---
public static readonly SettingKey<string> N8nArticleExtractionUrl = new("N8N.ArticleExtractionUrl", "https://n8n.kleidukos.me/webhook/gemini/article/extraction");
}