d6efa9163b
- Implemented ITelegramNotificationService and TelegramNotificationService for sending alerts via Telegram. - Updated MonitoringSettings to include Telegram configuration options. - Enhanced AlertService to send alerts and resolutions through Telegram. - Added API endpoints for checking Telegram status and sending test alerts. - Updated README and TELEGRAM_SETUP.md with setup instructions and features. - Included example configuration in appsettings.telegram.example.json.
75 lines
2.0 KiB
JSON
75 lines
2.0 KiB
JSON
{
|
|
"MonitoringSettings": {
|
|
"UpdateIntervalMs": 5000,
|
|
"DataRetentionDays": 7,
|
|
"EnableGpuMonitoring": true,
|
|
"EnableDiskMonitoring": true,
|
|
"EnableNetworkMonitoring": true,
|
|
"EnableTemperatureMonitoring": true,
|
|
"EnableProcessMonitoring": true,
|
|
"EnableGameDetection": true,
|
|
"EnableAlerts": true,
|
|
"MaxProcessesToTrack": 10,
|
|
"MaxHistoryPoints": 1000,
|
|
"GamePlatformPaths": [
|
|
"\\steamapps\\common\\",
|
|
"\\Epic Games\\",
|
|
"\\GOG Galaxy\\Games\\",
|
|
"\\Origin Games\\",
|
|
"\\Ubisoft Game Launcher\\games\\"
|
|
],
|
|
"GameRootFolders": [
|
|
"C:\\Games",
|
|
"D:\\Games",
|
|
"E:\\Games"
|
|
],
|
|
"AlertThresholds": [
|
|
{
|
|
"Component": "CPU",
|
|
"WarningThreshold": 80,
|
|
"CriticalThreshold": 95,
|
|
"DurationSeconds": 30,
|
|
"IsEnabled": true
|
|
},
|
|
{
|
|
"Component": "Memory",
|
|
"WarningThreshold": 85,
|
|
"CriticalThreshold": 95,
|
|
"DurationSeconds": 30,
|
|
"IsEnabled": true
|
|
},
|
|
{
|
|
"Component": "GPU",
|
|
"WarningThreshold": 85,
|
|
"CriticalThreshold": 95,
|
|
"DurationSeconds": 30,
|
|
"IsEnabled": true
|
|
},
|
|
{
|
|
"Component": "CPUTemp",
|
|
"WarningThreshold": 75,
|
|
"CriticalThreshold": 85,
|
|
"DurationSeconds": 60,
|
|
"IsEnabled": true
|
|
},
|
|
{
|
|
"Component": "GPUTemp",
|
|
"WarningThreshold": 80,
|
|
"CriticalThreshold": 90,
|
|
"DurationSeconds": 60,
|
|
"IsEnabled": true
|
|
}
|
|
],
|
|
"Telegram": {
|
|
"IsEnabled": true,
|
|
"BotToken": "123456789:ABCdefGHIjklMNOpqrSTUvwxyz",
|
|
"ChatIds": [123456789],
|
|
"SendWarningAlerts": true,
|
|
"SendCriticalAlerts": true,
|
|
"SendResolutionNotifications": true,
|
|
"MessageTemplate": "🚨 *{Level} Alert*\n\n📊 *{Component}*\n💬 {Message}\n⏰ {Timestamp}",
|
|
"ResolutionTemplate": "✅ *Alert Resolved*\n\n📊 *{Component}*\n💬 {Message}\n⏰ Resolved at {ResolvedAt}"
|
|
}
|
|
}
|
|
}
|