Power service updates

- Upgrade to .NET 8
- Remove ApplicationInsights
- Add OpenTelemetry
This commit is contained in:
2024-01-22 18:54:18 -05:00
parent 911e7fbdb9
commit 2a58b26eb3
16 changed files with 361 additions and 366 deletions

View File

@@ -1,13 +1,12 @@
using JetBrains.Annotations;
using System;
namespace ChrisKaczor.HomeMonitor.Power.Service.Models
namespace ChrisKaczor.HomeMonitor.Power.Service.Models;
[PublicAPI]
public class PowerStatus
{
[PublicAPI]
public class PowerStatus
{
public DateTimeOffset Timestamp { get; set; } = DateTimeOffset.UtcNow;
public long Generation { get; set; }
public long Consumption { get; set; }
}
}
public DateTimeOffset Timestamp { get; set; } = DateTimeOffset.UtcNow;
public long Generation { get; set; }
public long Consumption { get; set; }
}