2020-10-25 18:26:54 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								package nodeconfigs
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-19 19:03:58 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// NodeStatus 节点状态
							 | 
						
					
						
							
								
									
										
										
										
											2020-10-25 18:26:54 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								type NodeStatus struct {
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-18 20:41:37 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									BuildVersion     string `json:"buildVersion"`     // 编译版本
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									BuildVersionCode uint32 `json:"buildVersionCode"` // 版本数字
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									ConfigVersion    int64  `json:"configVersion"`    // 节点配置版本
							 | 
						
					
						
							
								
									
										
										
										
											2020-10-25 18:26:54 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-10-28 12:36:11 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									OS                    string  `json:"os"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Arch                  string  `json:"arch"`
							 | 
						
					
						
							
								
									
										
										
										
											2020-10-25 18:26:54 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Hostname              string  `json:"hostname"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									HostIP                string  `json:"hostIP"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CPUUsage              float64 `json:"cpuUsage"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CPULogicalCount       int     `json:"cpuLogicalCount"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CPUPhysicalCount      int     `json:"cpuPhysicalCount"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									MemoryUsage           float64 `json:"memoryUsage"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									MemoryTotal           uint64  `json:"memoryTotal"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DiskUsage             float64 `json:"diskUsage"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DiskMaxUsage          float64 `json:"diskMaxUsage"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DiskMaxUsagePartition string  `json:"diskMaxUsagePartition"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DiskTotal             uint64  `json:"diskTotal"`
							 | 
						
					
						
							
								
									
										
										
										
											2023-08-02 14:48:42 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									DiskWritingSpeedMB    int     `json:"diskWritingSpeedMB"` // 硬盘写入速度
							 | 
						
					
						
							
								
									
										
										
										
											2020-10-25 18:26:54 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UpdatedAt             int64   `json:"updatedAt"`
							 | 
						
					
						
							
								
									
										
										
										
											2022-06-07 11:45:45 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									Timestamp             int64   `json:"timestamp"` // 当前节点时间戳
							 | 
						
					
						
							
								
									
										
										
										
											2020-10-25 18:26:54 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Load1m                float64 `json:"load1m"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Load5m                float64 `json:"load5m"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Load15m               float64 `json:"load15m"`
							 | 
						
					
						
							
								
									
										
										
										
											2022-11-22 14:35:31 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									ConnectionCount       int     `json:"connectionCount"`   // 连接数
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									ExePath               string  `json:"exePath"`           // 可执行文件路径
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									APISuccessPercent     float64 `json:"apiSuccessPercent"` // API成功比例
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									APIAvgCostSeconds     float64 `json:"apiAvgCostSeconds"` // API平均耗时
							 | 
						
					
						
							
								
									
										
										
										
											2020-10-25 18:26:54 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-07 19:55:52 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									TrafficInBytes  uint64 `json:"trafficInBytes"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									TrafficOutBytes uint64 `json:"trafficOutBytes"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-19 19:03:58 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									CacheTotalDiskSize   int64 `json:"cacheTotalDiskSize"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CacheTotalMemorySize int64 `json:"cacheTotalMemorySize"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-22 14:58:50 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									LocalFirewallName string `json:"localFirewallName"`
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-21 18:14:58 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-10-25 18:26:54 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									IsActive bool   `json:"isActive"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Error    string `json:"error"`
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |