32 lines
1.3 KiB
C#
32 lines
1.3 KiB
C#
namespace PowerMonitorManager.Models.Consts;
|
|
|
|
public static class PowerMonitorConsts
|
|
{
|
|
public const int DefaultPollIntervalSeconds = 15;
|
|
public const int DefaultSmoothingWindowSize = 10;
|
|
public const double DefaultAnomalyThresholdWatts = 500.0;
|
|
public const int SecondsPerHour = 3600;
|
|
public const double WattsPerKilowatt = 1000.0;
|
|
|
|
public const string PowerDeviceClass = "power";
|
|
public const string WattUnit = "W";
|
|
public const string KilowattUnit = "kW";
|
|
public const string EurUnit = "EUR";
|
|
public const string MonetaryDeviceClass = "monetary";
|
|
public const string TotalStateClass = "total";
|
|
public const string MeasurementStateClass = "measurement";
|
|
|
|
public const int MainMeterMaxConsecutiveFailures = 5;
|
|
|
|
public const double DefaultHighPowerThresholdWatts = 6000.0;
|
|
|
|
public const string HighPowerNotificationId = "power_monitor_high_power";
|
|
public const string HighPowerNotificationTitle = "High Power Usage Alert";
|
|
public const string PersistentNotificationDomain = "persistent_notification";
|
|
public const string PersistentNotificationCreateService = "create";
|
|
public const string PersistentNotificationDismissService = "dismiss";
|
|
|
|
public const int MinutesPerQuarterHour = 15;
|
|
public const int MinutesPerHour = 60;
|
|
}
|