Skip to content

Commit 61e8c8f

Browse files
authored
Fields preread and num_procs added to Statistics (#1269)
1 parent ed26c47 commit 61e8c8f

File tree

1 file changed

+14
-0
lines changed
  • docker-java-api/src/main/java/com/github/dockerjava/api/model

1 file changed

+14
-0
lines changed

docker-java-api/src/main/java/com/github/dockerjava/api/model/Statistics.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ public class Statistics implements Serializable {
2020
@JsonProperty("read")
2121
private String read;
2222

23+
@JsonProperty("preread")
24+
private String preread;
25+
2326
/**
2427
* @since Docker Remote API 1.21
2528
*/
@@ -43,6 +46,9 @@ public class Statistics implements Serializable {
4346
@JsonProperty("cpu_stats")
4447
private CpuStatsConfig cpuStats;
4548

49+
@JsonProperty("num_procs")
50+
private Long numProcs;
51+
4652
/**
4753
* @since Docker Remote API 1.19
4854
*/
@@ -59,6 +65,10 @@ public String getRead() {
5965
return read;
6066
}
6167

68+
public String getPreread() {
69+
return preread;
70+
}
71+
6272
/**
6373
* @since Docker Remote API 1.21
6474
*/
@@ -79,6 +89,10 @@ public CpuStatsConfig getCpuStats() {
7989
return cpuStats;
8090
}
8191

92+
public Long getNumProcs() {
93+
return numProcs;
94+
}
95+
8296
/**
8397
* The cpu statistic of last read, which is used for calculating the cpu usage percent.
8498
* It is not the exact copy of the {@link #getCpuStats()}.

0 commit comments

Comments
 (0)