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

@@ -3,21 +3,20 @@ using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace ChrisKaczor.HomeMonitor.Power.Service.Models
namespace ChrisKaczor.HomeMonitor.Power.Service.Models;
[PublicAPI]
public class PowerSample
{
[PublicAPI]
public class PowerSample
{
[JsonPropertyName("sensorId")]
public string SensorId { get; set; }
[JsonPropertyName("sensorId")]
public string SensorId { get; set; }
[JsonPropertyName("timestamp")]
public DateTimeOffset Timestamp { get; set; }
[JsonPropertyName("timestamp")]
public DateTimeOffset Timestamp { get; set; }
[JsonPropertyName("channels")]
public PowerChannel[] Channels { get; set; }
[JsonPropertyName("channels")]
public PowerChannel[] Channels { get; set; }
[JsonPropertyName("cts")]
public Dictionary<string, double>[] CurrentTransformers { get; set; }
}
}
[JsonPropertyName("cts")]
public Dictionary<string, double>[] CurrentTransformers { get; set; }
}