Description

This function retrieves the server's load average.

Examples


https://hostname.example.com:2087/cpsess##########/json-api/loadavg?api.version=1
https://hostname.example.com:2087/cpsess##########/xml-api/loadavg?api.version=1

This function is not available through the command line. Instead, use WHM API 1's systemloadavg function.

 

 

{
   "one":"0.17",
   "five":"0.18",
   "fifteen":"0.19"
}
<loadavg>
       <one>0.17</one>
       <five>0.18</five>
       <fifteen>0.19</fifteen>
</loadavg>

   

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
onestring

The server's load average over the previous minute.

A decimal number.

For example, a value of .18 represents 18% of a single CPU's processor capacity.

0.17
fivestringThe server's load average over the previous five minutes.

A decimal number.

For example, a value of .18 represents 18% of a single CPU's processor capacity.

0.18
fifteenstringThe server's load average over the previous fifteen minutes.

A decimal number.

For example, a value of .18 represents 18% of a single CPU's processor capacity.

0.19