Files
HomeMonitor/Power/Service/Models/PowerSample.cs
Chris Kaczor 2a58b26eb3 Power service updates
- Upgrade to .NET 8
- Remove ApplicationInsights
- Add OpenTelemetry
2024-01-22 18:54:18 -05:00

22 lines
569 B
C#

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