Updated The Glances RESTFULL JSON API (markdown)

Nicolas Hennion 2014-07-07 06:46:00 -07:00
parent 6dfba796c8
commit 79a2678ed4

@ -79,9 +79,16 @@ Return the memory used (RAM)
Example: _/api/v2/processlist/pid
Return the pid list of processes
Return processes' pid list
```
{"pid": [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]}
```
Example: _/api/v2/network/interface_name
Return network interfaces name list
{"interface_name": ["lo", "docker0", "eth0"]}
```
***