Skip to content

Commit e2e13ca

Browse files
authored
fix getServerInfo Missing field & data accuracy error (#1516)
1 parent 6926ba0 commit e2e13ca

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

adminapi/src/main/java/io/minio/admin/messages/info/DiskMetrics.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ public class DiskMetrics {
3434
@JsonProperty("apiCalls")
3535
private Map<String, String> apiCalls;
3636

37+
@JsonProperty("totalErrorsAvailability")
38+
private Integer totalErrorsAvailability;
39+
40+
@JsonProperty("totalErrorsTimeout")
41+
private Integer totalErrorsTimeout;
42+
43+
public Integer totalErrorsAvailability() {
44+
return totalErrorsAvailability;
45+
}
46+
47+
public Integer totalErrorsTimeout() {
48+
return totalErrorsTimeout;
49+
}
50+
3751
public Map<String, TimedAction> lastMinute() {
3852
return Collections.unmodifiableMap(lastMinute);
3953
}

adminapi/src/main/java/io/minio/admin/messages/info/GCStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class GCStats {
3737
private Integer numGC;
3838

3939
@JsonProperty("pause_total")
40-
private Integer pauseTotal;
40+
private Long pauseTotal;
4141

4242
@JsonProperty("pause")
4343
private List<Integer> pause;
@@ -53,7 +53,7 @@ public Integer numGC() {
5353
return numGC;
5454
}
5555

56-
public Integer pauseTotal() {
56+
public Long pauseTotal() {
5757
return pauseTotal;
5858
}
5959

adminapi/src/main/java/io/minio/admin/messages/info/Usage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
@JsonIgnoreProperties(ignoreUnknown = true)
3030
public class Usage {
3131
@JsonProperty("size")
32-
private Integer size;
32+
private Long size;
3333

3434
@JsonProperty("error")
3535
private String error;
3636

37-
public Integer size() {
37+
public Long size() {
3838
return size;
3939
}
4040

0 commit comments

Comments
 (0)