X Tutup
Skip to content

Commit f790036

Browse files
author
Marcus Linke
committed
Merge branch 'bonigarcia-2.x' into 2.xt push origin 2.x
2 parents 2a4bf8a + f85b59d commit f790036

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

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

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import java.util.Map;
44

5+
import javax.annotation.CheckForNull;
6+
57
import org.apache.commons.lang.builder.ToStringBuilder;
68

79
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@@ -16,8 +18,19 @@ public class Statistics {
1618
@JsonProperty("read")
1719
private String read;
1820

21+
/**
22+
* @since Docker Remote API 1.21
23+
*/
24+
@CheckForNull
25+
@JsonProperty("networks")
26+
private Map<String, Object> networks;
27+
28+
/**
29+
* @deprecated as of Docker Remote API 1.21, replaced by {@link #networks}
30+
*/
31+
@Deprecated
1932
@JsonProperty("network")
20-
private Map<String, Object> networkStats;
33+
private Map<String, Object> network;
2134

2235
@JsonProperty("memory_stats")
2336
private Map<String, Object> memoryStats;
@@ -28,8 +41,20 @@ public class Statistics {
2841
@JsonProperty("cpu_stats")
2942
private Map<String, Object> cpuStats;
3043

31-
public Map<String, Object> getNetworkStats() {
32-
return networkStats;
44+
/**
45+
* @since Docker Remote API 1.21
46+
*/
47+
@CheckForNull
48+
public Map<String, Object> getNetworks() {
49+
return networks;
50+
}
51+
52+
/**
53+
* @deprecated as of Docker Remote API 1.21, replaced by {@link #getNetworks()}
54+
*/
55+
@Deprecated
56+
public Map<String, Object> getNetwork() {
57+
return network;
3358
}
3459

3560
public Map<String, Object> getCpuStats() {

0 commit comments

Comments
 (0)
X Tutup