17
17
18
18
package io .minio .admin .messages .info ;
19
19
20
+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
20
21
import com .fasterxml .jackson .annotation .JsonProperty ;
21
22
import java .util .Collections ;
22
23
import java .util .Map ;
27
28
* @see <a href=
28
29
* "https://github.com/minio/madmin-go/blob/main/info-commands.go#L395">info-commands.go</a>
29
30
*/
31
+ @ JsonIgnoreProperties (ignoreUnknown = true )
30
32
public class DiskMetrics {
31
33
@ JsonProperty ("lastMinute" )
32
34
private Map <String , TimedAction > lastMinute ;
@@ -40,6 +42,18 @@ public class DiskMetrics {
40
42
@ JsonProperty ("totalErrorsTimeout" )
41
43
private Integer totalErrorsTimeout ;
42
44
45
+ @ JsonProperty ("totalTokens" )
46
+ private Long totalTokens ;
47
+
48
+ @ JsonProperty ("totalWaiting" )
49
+ private Long totalWaiting ;
50
+
51
+ @ JsonProperty ("totalWrites" )
52
+ private Long totalWrites ;
53
+
54
+ @ JsonProperty ("totalDeletes" )
55
+ private Long totalDeletes ;
56
+
43
57
public Integer totalErrorsAvailability () {
44
58
return totalErrorsAvailability ;
45
59
}
@@ -55,4 +69,20 @@ public Map<String, TimedAction> lastMinute() {
55
69
public Map <String , String > apiCalls () {
56
70
return Collections .unmodifiableMap (apiCalls );
57
71
}
72
+
73
+ public Long totalTokens () {
74
+ return totalTokens ;
75
+ }
76
+
77
+ public Long totalWaiting () {
78
+ return totalWaiting ;
79
+ }
80
+
81
+ public Long totalWrites () {
82
+ return totalWrites ;
83
+ }
84
+
85
+ public Long totalDeletes () {
86
+ return totalDeletes ;
87
+ }
58
88
}
0 commit comments