Signed-off-by: jikai <jikai11@huawei.com> (cherry picked from commit 35815058031561339484cdbdff29d3c4beef7a99)
54 lines
1.8 KiB
Diff
54 lines
1.8 KiB
Diff
From 299f54b13a85855540e6d28e9c9bfefb7bc66f14 Mon Sep 17 00:00:00 2001
|
|
From: jikai <jikai11@huawei.com>
|
|
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 <jikai11@huawei.com>
|
|
---
|
|
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
|
|
|