监控数据添加
This commit is contained in:
17
Model/Entity/MonitorValueEntity.cs
Normal file
17
Model/Entity/MonitorValueEntity.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Model.Entity
|
||||
{
|
||||
public class MonitorValueEntity:BaseEntity
|
||||
{
|
||||
[SugarColumn(ColumnName = "MonitorName")]
|
||||
public string MonitorName { get; set; }
|
||||
[SugarColumn(ColumnName = "MonitorValue")]
|
||||
public double MonitorValue { get; set; }
|
||||
}
|
||||
}
|
||||
21
Model/Models/AvailableMethodItem.cs
Normal file
21
Model/Models/AvailableMethodItem.cs
Normal 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!;
|
||||
}
|
||||
}
|
||||
18
Model/Models/HardwareReportArgs.cs
Normal file
18
Model/Models/HardwareReportArgs.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user