Skip to content

Commit f8a5fb4

Browse files
committed
Deprecate "network" and enable "networks" stats (remote Docker API 1.21)
1 parent 2a4bf8a commit f8a5fb4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ public class Statistics {
1616
@JsonProperty("read")
1717
private String read;
1818

19+
@JsonProperty("networks")
20+
private Map<String, Object> networksStats;
21+
22+
/**
23+
* Deprecated as of Docker Remote API 1.21
24+
*/
25+
@Deprecated
1926
@JsonProperty("network")
2027
private Map<String, Object> networkStats;
2128

@@ -28,6 +35,10 @@ public class Statistics {
2835
@JsonProperty("cpu_stats")
2936
private Map<String, Object> cpuStats;
3037

38+
public Map<String, Object> getNetworksStats() {
39+
return networksStats;
40+
}
41+
3142
public Map<String, Object> getNetworkStats() {
3243
return networkStats;
3344
}

0 commit comments

Comments
 (0)