mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-19 09:35:38 -05:00
Power service updates
- Upgrade to .NET 8 - Remove ApplicationInsights - Add OpenTelemetry
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user