diff --git a/The-Glances-RESTFULL-JSON-API.md b/The-Glances-RESTFULL-JSON-API.md index de2879f..14b80cd 100644 --- a/The-Glances-RESTFULL-JSON-API.md +++ b/The-Glances-RESTFULL-JSON-API.md @@ -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}],...} ``` -*** \ No newline at end of file +*** + +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} +``` + +***