From 5a6fbac20fa0e4081f8b268438090a5cb37b8d28 Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Mon, 7 Jul 2014 06:41:25 -0700 Subject: [PATCH] Updated The Glances RESTFULL JSON API (markdown) --- The-Glances-RESTFULL-JSON-API.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/The-Glances-RESTFULL-JSON-API.md b/The-Glances-RESTFULL-JSON-API.md index 21b0ceb..442c192 100644 --- a/The-Glances-RESTFULL-JSON-API.md +++ b/The-Glances-RESTFULL-JSON-API.md @@ -72,8 +72,17 @@ Request response: Example: _/api/v2/mem/used_ +Return the memory used (RAM) ``` {"used": 3255848960} ``` +Example: _/api/v2/processlist/pid + +Return the pid list of processes +``` +[1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 72, 73, 74, 75, 76, 77, 78, 90, 92, 93, 113, 114, 165, 167, 168, 169, 170, 171, 172, 191, 192, 370, 376, 429, 430, 454, 468, 522, 562, 770, 773] +``` + + ***