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/StatisticsVO.java | 147 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 147 insertions(+), 0 deletions(-)
diff --git a/mes-processes/mes-plcSend/src/main/java/com/mes/device/vo/StatisticsVO.java b/mes-processes/mes-plcSend/src/main/java/com/mes/device/vo/StatisticsVO.java
new file mode 100644
index 0000000..d9f405b
--- /dev/null
+++ b/mes-processes/mes-plcSend/src/main/java/com/mes/device/vo/StatisticsVO.java
@@ -0,0 +1,147 @@
+package com.mes.device.vo;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 缁熻瑙嗗浘瀵硅薄
+ *
+ * @author mes
+ * @since 2024-10-30
+ */
+public class StatisticsVO {
+
+ /**
+ * 璁惧缁熻淇℃伅
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class DeviceStatistics {
+ private Integer totalDevices;
+ private Integer onlineDevices;
+ private Integer offlineDevices;
+ private Integer activeDevices;
+ private Integer inactiveDevices;
+ private Integer faultDevices;
+ private Integer maintenanceDevices;
+ private Integer deviceTypeCounts;
+ private Double deviceAvailability;
+ private Double averageUptime;
+ private Date lastUpdateTime;
+ private List<DeviceTypeStatistics> deviceTypeStats;
+ }
+
+ /**
+ * 璁惧绫诲瀷缁熻
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class DeviceTypeStatistics {
+ private String deviceType;
+ private Integer totalCount;
+ private Integer onlineCount;
+ private Integer offlineCount;
+ private Double availability;
+ }
+
+ /**
+ * 璁惧缁勭粺璁′俊鎭�
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class GroupStatistics {
+ private Integer totalGroups;
+ private Integer activeGroups;
+ private Integer inactiveGroups;
+ private Integer totalDevices;
+ private Integer avgDevicesPerGroup;
+ private Integer healthyGroups;
+ private Integer unhealthyGroups;
+ private Double groupAvailability;
+ private Double averagePerformance;
+ private Date lastUpdateTime;
+ private List<GroupTypeStatistics> groupTypeStats;
+ }
+
+ /**
+ * 璁惧缁勭被鍨嬬粺璁�
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class GroupTypeStatistics {
+ private String groupType;
+ private Integer totalCount;
+ private Integer activeCount;
+ private Integer avgDeviceCount;
+ private Double healthScore;
+ }
+
+ /**
+ * 浠诲姟鎵ц缁熻
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class TaskStatistics {
+ private Integer totalTasks;
+ private Integer completedTasks;
+ private Integer runningTasks;
+ private Integer failedTasks;
+ private Double successRate;
+ private Double averageExecutionTime;
+ private Date lastUpdateTime;
+ private List<TaskTypeStatistics> taskTypeStats;
+ }
+
+ /**
+ * 浠诲姟绫诲瀷缁熻
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class TaskTypeStatistics {
+ private String taskType;
+ private Integer totalCount;
+ private Integer completedCount;
+ private Double successRate;
+ private Double averageTime;
+ }
+
+ /**
+ * 绯荤粺鎬ц兘缁熻
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class SystemStatistics {
+ private Integer totalConnections;
+ private Double cpuUsage;
+ private Double memoryUsage;
+ private Double diskUsage;
+ private Integer activeSessions;
+ private Double networkThroughput;
+ private Date lastUpdateTime;
+ }
+
+ /**
+ * 璁惧鎬ц兘瓒嬪娍
+ */
+ @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class PerformanceTrend {
+ private Date timestamp;
+ private Double cpuUsage;
+ private Double memoryUsage;
+ private Double networkTraffic;
+ private Integer activeConnections;
+ }
+}
\ No newline at end of file
--
Gitblit v1.8.0