feat: add PowerMonitor configuration model and constants

Made-with: Cursor
This commit is contained in:
Marius
2026-03-17 12:45:38 +02:00
parent a3417d0e97
commit 6fd1af7e21
3 changed files with 47 additions and 0 deletions
@@ -0,0 +1,14 @@
using PowerMonitorManager.Models.Consts;
namespace PowerMonitorManager.Models;
public sealed class PowerMonitorOptions
{
public const string SectionName = "PowerMonitor";
public string MainMeterEntityId { get; set; } = string.Empty;
public int PollIntervalSeconds { get; set; } = PowerMonitorConsts.DefaultPollIntervalSeconds;
public int SmoothingWindowSize { get; set; } = PowerMonitorConsts.DefaultSmoothingWindowSize;
public double AnomalyThresholdWatts { get; set; } = PowerMonitorConsts.DefaultAnomalyThresholdWatts;
public string[] ExcludedSensorPatterns { get; set; } = [];
}