File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed
main/java/com/github/dockerjava/api/model
java/com/github/dockerjava/api/model
resources/samples/1.27/containers/container/stats Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1515public class MemoryStatsConfig implements Serializable {
1616 private static final long serialVersionUID = 1L ;
1717
18+ @ JsonProperty ("stats" )
19+ private StatsConfig stats ;
20+
1821 @ JsonProperty ("usage" )
1922 private Long usage ;
2023
2124 @ JsonProperty ("max_usage" )
2225 private Long maxUsage ;
2326
24- @ JsonProperty ("stats " )
25- private StatsConfig stats ;
27+ @ JsonProperty ("failcnt " )
28+ private Long failcnt ;
2629
2730 @ JsonProperty ("limit" )
2831 private Long limit ;
2932
33+ /**
34+ * @see #stats
35+ */
36+ @ CheckForNull
37+ public StatsConfig getStats () {
38+ return stats ;
39+ }
40+
3041 /**
3142 * @see #usage
3243 */
@@ -44,11 +55,10 @@ public Long getMaxUsage() {
4455 }
4556
4657 /**
47- * @see #stats
58+ * @see #failcnt
4859 */
49- @ CheckForNull
50- public StatsConfig getStats () {
51- return stats ;
60+ public Long getFailcnt () {
61+ return failcnt ;
5262 }
5363
5464 /**
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ public void serderJson1() throws IOException {
8282 assertThat (stats .getWriteback (), is (0L ));
8383
8484 assertThat (memoryStats .getLimit (), is (2095874048L ));
85+ assertThat (memoryStats .getFailcnt (), is (0L ));
8586
8687 final BlkioStatsConfig blkioStats = statistics .getBlkioStats ();
8788 assertThat (blkioStats .getIoServiceBytesRecursive ().size (), is (2 ));
Original file line number Diff line number Diff line change 171171 "unevictable" :0 ,
172172 "writeback" :0
173173 },
174- "limit" :2095874048
174+ "limit" :2095874048 ,
175+ "failcnt" :0
175176 },
176177 "name" :" /gallant_hamilton" ,
177178 "id" :" b581d78b03e41d81c9fe941f03f5d35e23733ff96370456b58d2906e002b0deb" ,
You can’t perform that action at this time.
0 commit comments