2025-11-21 08:48:01 +08:00
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BLWLogProduce.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();
|
|
|
|
|
|
|
|
|
|
|
|
public static string UDPPackage_TotalRecvPackage = "UDPPackage_TotalRecvPackage";
|
|
|
|
|
|
public static string UDPPackage_TotalSendPackage = "UDPPackage_TotalSendPackage";
|
|
|
|
|
|
public static string RCU_Online = "RCUOnLine";
|
|
|
|
|
|
public static string TakeCardIn = "TakeCardIn";
|
|
|
|
|
|
public static string UDPPackage_Heart = "UDPPackage_Heart";
|
|
|
|
|
|
public static string UDPPackage_SearchHost = "UDPPackage_SearchHost";
|
|
|
|
|
|
public static string UDPPackage_Intercept = "UDPPackage_Intercept";
|
|
|
|
|
|
public static string 在线用户 = "在线用户";
|
|
|
|
|
|
public static string UDPPackage_能耗 = "UDPPackage_能耗";
|
|
|
|
|
|
public static string UDPPackage_StatusPass = "UDPPackage_StatusPass";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static string UDPPackage_TCL电视Discovery = "UDPPackage_TCL电视Discovery";
|
|
|
|
|
|
public static string UDPPackage_TCL电视Control = "UDPPackage_TCL电视Control";
|
|
|
|
|
|
|
|
|
|
|
|
public static string UDPPackage_小度音箱Discovery = "UDPPackage_小度音箱Discovery";
|
|
|
|
|
|
public static string UDPPackage_小度音箱Control = "UDPPackage_小度音箱Control";
|
|
|
|
|
|
|
|
|
|
|
|
public static string UDPPackage_TianMaoQueryAll = "UDPPackage_TianMaoQueryAll";
|
|
|
|
|
|
public static string UDPPackage_TianMaoCONTROL = "UDPPackage_TianMaoCONTROL";
|
2025-11-25 17:30:36 +08:00
|
|
|
|
|
|
|
|
|
|
public static string TotalErrorPackageReceiveCount = "TotalErrorPackageReceiveCount";
|
2025-11-21 08:48:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
public class grafana_data
|
|
|
|
|
|
{
|
|
|
|
|
|
public string? WireShark_UDPCapCount { get; set; } = "0";
|
|
|
|
|
|
public string? UDP_Upload { get; set; } = "0";
|
|
|
|
|
|
public string? UDP_Sent { get; set; } = "0";
|
|
|
|
|
|
public string? RCU_Online { get; set; } = "0";
|
|
|
|
|
|
public string? RCU_TakeCard { get; set; } = "0";
|
|
|
|
|
|
public string? RCU_Heart { get; set; } = "0";
|
|
|
|
|
|
public string? RCU_SearchHost { get; set; } = "0";
|
|
|
|
|
|
public string? Intercept { get; set; } = "0";
|
|
|
|
|
|
public string? WebUser { get; set; } = "0";
|
|
|
|
|
|
public string? Energy { get; set; } = "0";
|
|
|
|
|
|
public string? RCU_OE { get; set; } = "0";
|
|
|
|
|
|
public string? TCL_Ctr_D { get; set; } = "0";
|
|
|
|
|
|
public string? TCL_Ctr_C { get; set; } = "0";
|
|
|
|
|
|
public string? TM_Ctr_D { get; set; } = "0";
|
|
|
|
|
|
public string? TM_Ctr_C { get; set; } = "0";
|
|
|
|
|
|
public string? XD_Ctr_D { get; set; } = "0";
|
|
|
|
|
|
public string? XD_Ctr_C { get; set; } = "0";
|
|
|
|
|
|
public string? Hivi_Ctr { get; set; } = "0";
|
2025-11-25 17:30:36 +08:00
|
|
|
|
public int? Process_Error { get; set; } = 0;
|
|
|
|
|
|
public int? Process_TH1 { get; set; } = 0;
|
|
|
|
|
|
public int? Process_TH2 { get; set; } = 0;
|
|
|
|
|
|
public int? Process_TH3 { get; set; } = 0;
|
|
|
|
|
|
public int? Process_TH4 { get; set; } = 0;
|
|
|
|
|
|
public int? Process_TH5 { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
|
|
public string? TotalErrorPackageReceiveCount { get; set; } = "0" ;
|
2025-11-21 08:48:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|