using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common { public class Grafana { 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 Grafana() //{ // string getdata = File.ReadAllText(WaiBuJianKongSourceFileName, Encoding.UTF8); // Data = getdata; //} public static grafana_data data = new grafana_data(); } public class grafana_data { public string? device_id { get; set; } = "0"; 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"; } }