监控数据添加

This commit is contained in:
hsc
2026-06-26 16:07:22 +08:00
parent 4567f058b5
commit 8f124fb08d
10 changed files with 440 additions and 141 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Model.Models
{
/// <summary>
/// 可用设备方法项(供用户选择添加为监测通道)
/// </summary>
public class AvailableMethodItem
{
public string DeviceName { get; set; } = string.Empty;
public string MethodName { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
public MethodInfo MethodInfo { get; set; } = null!;
public object Device { get; set; } = null!;
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.Models
{
public class HardwareReportArgs
{
public string HardwareFingerprint { get; set; } = string.Empty;
public string Key { get; set; } = string.Empty;
public double Value { get; set; }
public DateTime Time { get; set; } = DateTime.Now;
}
}