[agent-go] [status] - test for connect
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package io.wdd.rpc.status.beans;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public class AgentStatus {
|
||||
|
||||
@JsonProperty("CPUStatus")
|
||||
private CPUInfo cPUStatus;
|
||||
|
||||
@JsonProperty("MemoryStatus")
|
||||
private MemoryInfo memoryStatus;
|
||||
|
||||
@JsonProperty("NetworkStatus")
|
||||
private NetworkInfo networkStatus;
|
||||
|
||||
@JsonProperty("DiskStatus")
|
||||
private DiskInfo diskStatus;
|
||||
|
||||
}
|
||||
32
server/src/main/java/io/wdd/rpc/status/beans/DiskInfo.java
Normal file
32
server/src/main/java/io/wdd/rpc/status/beans/DiskInfo.java
Normal file
@@ -0,0 +1,32 @@
|
||||
package io.wdd.rpc.status.beans;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public class DiskInfo {
|
||||
|
||||
@JsonProperty("Total")
|
||||
private Long total;
|
||||
@JsonProperty("Used")
|
||||
private Long used;
|
||||
@JsonProperty("LogicalDisk")
|
||||
private List<LogicalDiskDTO> logicalDisk;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public static class LogicalDiskDTO {
|
||||
@JsonProperty("device")
|
||||
private String device;
|
||||
@JsonProperty("mountpoint")
|
||||
private String mountpoint;
|
||||
@JsonProperty("fstype")
|
||||
private String fstype;
|
||||
@JsonProperty("opts")
|
||||
private List<String> opts;
|
||||
}
|
||||
}
|
||||
21
server/src/main/java/io/wdd/rpc/status/beans/MemoryInfo.java
Normal file
21
server/src/main/java/io/wdd/rpc/status/beans/MemoryInfo.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package io.wdd.rpc.status.beans;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public class MemoryInfo {
|
||||
|
||||
@JsonProperty("TotalMemory")
|
||||
private Long totalMemory;
|
||||
@JsonProperty("UsedMemory")
|
||||
private Long usedMemory;
|
||||
@JsonProperty("AvailableMemory")
|
||||
private Long availableMemory;
|
||||
@JsonProperty("TotalVirtualMemory")
|
||||
private Long totalVirtualMemory;
|
||||
@JsonProperty("UsedVirtualMemory")
|
||||
private Long usedVirtualMemory;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package io.wdd.rpc.status.beans;
|
||||
|
||||
public class AgentStatus {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user