From e2e13cadc901cb8a3ecb016f5a1255207512280f Mon Sep 17 00:00:00 2001 From: Jamey Zubek <981800006@qq.com> Date: Sun, 11 Feb 2024 08:40:59 +0800 Subject: [PATCH] fix getServerInfo Missing field & data accuracy error (#1516) --- .../io/minio/admin/messages/info/DiskMetrics.java | 14 ++++++++++++++ .../java/io/minio/admin/messages/info/GCStats.java | 4 ++-- .../java/io/minio/admin/messages/info/Usage.java | 4 ++-- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/adminapi/src/main/java/io/minio/admin/messages/info/DiskMetrics.java b/adminapi/src/main/java/io/minio/admin/messages/info/DiskMetrics.java index bdcd2de75..b82658d8c 100644 --- a/adminapi/src/main/java/io/minio/admin/messages/info/DiskMetrics.java +++ b/adminapi/src/main/java/io/minio/admin/messages/info/DiskMetrics.java @@ -34,6 +34,20 @@ public class DiskMetrics { @JsonProperty("apiCalls") private Map apiCalls; + @JsonProperty("totalErrorsAvailability") + private Integer totalErrorsAvailability; + + @JsonProperty("totalErrorsTimeout") + private Integer totalErrorsTimeout; + + public Integer totalErrorsAvailability() { + return totalErrorsAvailability; + } + + public Integer totalErrorsTimeout() { + return totalErrorsTimeout; + } + public Map lastMinute() { return Collections.unmodifiableMap(lastMinute); } diff --git a/adminapi/src/main/java/io/minio/admin/messages/info/GCStats.java b/adminapi/src/main/java/io/minio/admin/messages/info/GCStats.java index d2d9d9cd8..9a8b52d13 100644 --- a/adminapi/src/main/java/io/minio/admin/messages/info/GCStats.java +++ b/adminapi/src/main/java/io/minio/admin/messages/info/GCStats.java @@ -37,7 +37,7 @@ public class GCStats { private Integer numGC; @JsonProperty("pause_total") - private Integer pauseTotal; + private Long pauseTotal; @JsonProperty("pause") private List pause; @@ -53,7 +53,7 @@ public Integer numGC() { return numGC; } - public Integer pauseTotal() { + public Long pauseTotal() { return pauseTotal; } diff --git a/adminapi/src/main/java/io/minio/admin/messages/info/Usage.java b/adminapi/src/main/java/io/minio/admin/messages/info/Usage.java index fa24ede7b..9c43d85e8 100644 --- a/adminapi/src/main/java/io/minio/admin/messages/info/Usage.java +++ b/adminapi/src/main/java/io/minio/admin/messages/info/Usage.java @@ -29,12 +29,12 @@ @JsonIgnoreProperties(ignoreUnknown = true) public class Usage { @JsonProperty("size") - private Integer size; + private Long size; @JsonProperty("error") private String error; - public Integer size() { + public Long size() { return size; }