初始化
This commit is contained in:
9
看板定阅/Models/ErrorViewModel.cs
Normal file
9
看板定阅/Models/ErrorViewModel.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace 看板定阅.Models
|
||||
{
|
||||
public class ErrorViewModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
}
|
||||
20
看板定阅/Models/Grafana.cs
Normal file
20
看板定阅/Models/Grafana.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Common
|
||||
{
|
||||
public class grafana_data
|
||||
{
|
||||
public string? device_id { get; set; } = "80";
|
||||
public string? device_status { get; set; } = "0";
|
||||
public string? realtime_value { get; set; }= "0";
|
||||
public string? environment_value { get; set; }="0";
|
||||
public string? mcu_temperature { get; set; } = "0";
|
||||
public string? sensor_temperature { get; set; }= "0";
|
||||
public string? sensor_humidity { get; set; } = "0";
|
||||
public string? adc_raw_value { get; set; } = "0";
|
||||
}
|
||||
}
|
||||
20
看板定阅/Models/WaiBuJianKong.cs
Normal file
20
看板定阅/Models/WaiBuJianKong.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Text;
|
||||
using Common;
|
||||
|
||||
namespace 看板定阅.Models
|
||||
{
|
||||
public class WaiBuJianKong
|
||||
{
|
||||
public static string WaiBuJianKongSourceFileName = "Para_copy.yaml";
|
||||
public static string WaiBuJianKongTargetFileName = "C:\\Program Files\\windows_exporter\\textfile_inputs\\Para.prom";
|
||||
public static string Data = "";
|
||||
|
||||
static WaiBuJianKong()
|
||||
{
|
||||
string getdata = File.ReadAllText(WaiBuJianKongSourceFileName, Encoding.UTF8);
|
||||
Data = getdata;
|
||||
}
|
||||
public static grafana_data data = new grafana_data();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user