From e76f0739e647fe8a7e0e2618914e2faff554b1b7 Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期一, 17 十一月 2025 17:33:23 +0800
Subject: [PATCH] 解决冲突
---
mes-processes/mes-plcSend/src/main/java/com/mes/device/vo/DeviceGroupVO.java | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 100 insertions(+), 0 deletions(-)
diff --git a/mes-processes/mes-plcSend/src/main/java/com/mes/device/vo/DeviceGroupVO.java b/mes-processes/mes-plcSend/src/main/java/com/mes/device/vo/DeviceGroupVO.java
new file mode 100644
index 0000000..01869d5
--- /dev/null
+++ b/mes-processes/mes-plcSend/src/main/java/com/mes/device/vo/DeviceGroupVO.java
@@ -0,0 +1,100 @@
+package com.mes.device.vo;
+
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.AllArgsConstructor;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 璁惧缁勭浉鍏宠鍥惧璞�
+ *
+ * @author mes
+ * @since 2024-10-30
+ */
+public class DeviceGroupVO {
+
+ /**
+ * 璁惧淇℃伅
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class DeviceInfo {
+ private Long id;
+ private String deviceName;
+ private String deviceCode;
+ private String deviceType;
+ private String deviceRole;
+ private String status;
+ private Date lastHeartbeat;
+ private Boolean isOnline;
+ }
+
+ /**
+ * 璁惧缁勪俊鎭�
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class GroupInfo {
+ private Long id;
+ private String groupCode;
+ private String groupName;
+ private String groupType;
+ private String status;
+ private Integer deviceCount;
+ private Date createTime;
+ private Long projectId;
+ }
+
+ /**
+ * 鍋ュ悍妫�鏌ョ粨鏋�
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class HealthCheckResult {
+ private Boolean isHealthy;
+ private Integer totalDevices;
+ private Integer onlineDevices;
+ private Integer offlineDevices;
+ private List<String> failedDevices;
+ private Date checkTime;
+ private String checkSummary;
+ }
+
+ /**
+ * 鎬ц兘缁熻淇℃伅
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class PerformanceStats {
+ private Integer totalDevices;
+ private Integer activeDevices;
+ private Double averageCpuUsage;
+ private Double averageMemoryUsage;
+ private Integer totalTasksCompleted;
+ private Double successRate;
+ private Date statsTime;
+ private List<DevicePerformance> devicePerformances;
+ }
+
+ /**
+ * 鍗曚釜璁惧鎬ц兘淇℃伅
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class DevicePerformance {
+ private Long deviceId;
+ private String deviceName;
+ private String deviceCode;
+ private Double cpuUsage;
+ private Double memoryUsage;
+ private Integer tasksCompleted;
+ private Double successRate;
+ }
+}
\ No newline at end of file
--
Gitblit v1.8.0