API commands¶
Remotelabz workers also use an internal REST API to communicate certain data to the front. Here a list of this API's commands:
Get¶
apiGetCPUUsage()
: return cpu usage in percentageapiGetDiskUsage()
: return disk usage in percentageapiGetOldMemUsage()
: RAM usage in percentage as cache or data or -1 if not valid (Deprecated)apiGetMemUsage()
: RAM usage in percentage as cache or dataapiGetRunningWrappers()
: Returns the Wrappers running states for iol,dynamips,qemu,docker,vcps.The results are returned into an array of int.apiGetSwapUsage()
: Return the SWAP usage percentage.
Set¶
apiSetUksm($processor)
: Set UKSM status for processor$processor
.apiSetKsm($processor)
: Set KSM status for processor$processor
.apiSetCPULimit($processor)
: Set CPULimit for processor$processor
.