上报数据方式优化

This commit is contained in:
hsc
2026-06-30 10:01:30 +08:00
parent 8f124fb08d
commit f27045153c
7 changed files with 368 additions and 190 deletions

View File

@@ -13,6 +13,8 @@ namespace Model.Models
public class AvailableMethodItem
{
public string DeviceName { get; set; } = string.Empty;
/// <summary>硬件指纹(物理设备唯一标识)</summary>
public string Fingerprint { get; set; } = string.Empty;
public string MethodName { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
public MethodInfo MethodInfo { get; set; } = null!;

View File

@@ -8,11 +8,19 @@ namespace Model.Models
{
public class HardwareReportArgs
{
public string HardwareFingerprint { get; set; } = string.Empty;
public string Key { get; set; } = string.Empty;
/// <summary>作用域标识(台架名称)</summary>
public string Scope { get; set; } = string.Empty;
/// <summary>硬件指纹(物理设备唯一标识,如 "Tcp:192.168.1.1:5000"</summary>
public string HardwareFingerprint { get; set; } = string.Empty;
/// <summary>方法名</summary>
public string MethodName { get; set; } = string.Empty;
/// <summary>采样值</summary>
public double Value { get; set; }
/// <summary>采样时间</summary>
public DateTime Time { get; set; } = DateTime.Now;
}
}