Updated The Glances RESTFULL JSON API (markdown)

Nicolas Hennion 2014-07-07 12:48:36 -07:00
parent 81bd9641f0
commit 205cf9e312

@ -149,4 +149,25 @@ Example: _/api/v2/all_
{"load": {"cpucore": 4, "min1": 0.18, "min5": 0.29, "min15": 0.36}, "core": {"phys": 1, "log": 4}, "uptime": "7:10:12", "fs": [{"mnt_point": "/", "used": 164121161728, "percent": 76.3, "device_name": "/dev/sda5", "fs_type": "ext4", "size": 215225925632}],...}
```
***
***
GET _**/api/2/:plugin/limits**_
Return the limits for the specific ``plugin``
Request parameters:
* plugin: plugin name
Request response:
* 200 - application/json: dictionnary
* 404 - Returned if the property does not exist
Example: _/api/v2/mem/limits_
```
{"mem_careful": 50.0, "mem_critical": 90.0, "mem_warning": 70.0}
```
***