代码拉取完成,页面将自动刷新
From 299f54b13a85855540e6d28e9c9bfefb7bc66f14 Mon Sep 17 00:00:00 2001
From: jikai <[email protected]>
Date: Fri, 12 Jan 2024 11:30:34 +0800
Subject: [PATCH 04/14] add swap usage fields in shim stats and container info
Signed-off-by: jikai <[email protected]>
---
src/json/schema/container/info.json | 6 ++++++
src/json/schema/shim/client/runtime-stats.json | 11 +++++++++++
2 files changed, 17 insertions(+)
diff --git a/src/json/schema/container/info.json b/src/json/schema/container/info.json
index 53d8a91..3bf1033 100644
--- a/src/json/schema/container/info.json
+++ b/src/json/schema/container/info.json
@@ -79,6 +79,12 @@
},
"timestamp": {
"type": "uint64"
+ },
+ "swap_used": {
+ "type": "uint64"
+ },
+ "swap_limit": {
+ "type": "uint64"
}
}
}
diff --git a/src/json/schema/shim/client/runtime-stats.json b/src/json/schema/shim/client/runtime-stats.json
index 35cfe64..9d92a81 100644
--- a/src/json/schema/shim/client/runtime-stats.json
+++ b/src/json/schema/shim/client/runtime-stats.json
@@ -63,6 +63,17 @@
"$ref": "../../defs.json#/definitions/uint64"
}
}
+ },
+ "swap": {
+ "type": "object",
+ "properties": {
+ "usage": {
+ "$ref": "../../defs.json#/definitions/uint64"
+ },
+ "limit": {
+ "$ref": "../../defs.json#/definitions/uint64"
+ }
+ }
}
}
},
--
2.34.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。