[ agent ] [status] - app status - 5
This commit is contained in:
@@ -6,7 +6,6 @@ import lombok.Data;
|
||||
@Data
|
||||
public class R<T> {
|
||||
|
||||
|
||||
int code;
|
||||
|
||||
String msg;
|
||||
|
||||
@@ -10,8 +10,6 @@ public enum ResultStat {
|
||||
|
||||
PARAM_ERROR(1003, "请求参数错误!"),
|
||||
|
||||
|
||||
|
||||
BAD(5001, "all error !");
|
||||
|
||||
int code;
|
||||
|
||||
@@ -5,7 +5,6 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import oshi.software.os.OperatingSystem;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -21,7 +20,6 @@ public class AgentStatus {
|
||||
|
||||
String agentTopicName;
|
||||
|
||||
|
||||
CpuInfo cpuInfo;
|
||||
|
||||
MemoryInfo memoryInfo;
|
||||
@@ -32,4 +30,6 @@ public class AgentStatus {
|
||||
|
||||
AgentSystemInfo osInfo;
|
||||
|
||||
AppStatusInfo appStatus;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package io.wdd.common.beans.status;
|
||||
|
||||
public enum AppStatusEnum {
|
||||
|
||||
HEALTHY("Healthy", "app is running"),
|
||||
|
||||
FAILURE("Failure", "app is failed"),
|
||||
|
||||
NOT_INSTALL("NotInstall", "app not installed");
|
||||
|
||||
String name;
|
||||
|
||||
String description;
|
||||
|
||||
AppStatusEnum(String name, String description) {
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package io.wdd.common.beans.status;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder(toBuilder = true)
|
||||
public class AppStatusInfo {
|
||||
|
||||
Set<String> Healthy;
|
||||
|
||||
Set<String> Failure;
|
||||
|
||||
Set<String> NotInstall;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user