Description

This function retrieves the system's load average.

Examples 


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

{
      "data":{
         "one":"0.17",
         "five":"0.18",
         "fifteen":"0.19"
      },
      "metadata":{
         "result":1,
         "reason":"OK",
         "version":1,
         "command":"systemloadavg"
      }
   }
<result>
   <data>
      <one>0.17</one>
      <five>0.18</five>
      <fifteen>0.19</fifteen>
   </data>
   <metadata>
      <result>1</result>
      <reason>OK</reason>
      <version>1</version>
      <command>systemloadavg</command>
   </metadata>
</result>

   

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