上报数据方式优化
This commit is contained in:
@@ -9,9 +9,16 @@ namespace Model.Entity
|
||||
{
|
||||
public class MonitorValueEntity:BaseEntity
|
||||
{
|
||||
/// <summary>监测项名称</summary>
|
||||
[SugarColumn(ColumnName = "MonitorName")]
|
||||
public string MonitorName { get; set; }
|
||||
public string MonitorName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>监测值</summary>
|
||||
[SugarColumn(ColumnName = "MonitorValue")]
|
||||
public double MonitorValue { get; set; }
|
||||
|
||||
/// <summary>作用域标识(台架名称)</summary>
|
||||
[SugarColumn(ColumnName = "Scope")]
|
||||
public string Scope { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user