os
The sos.management.os
API groups together methods for retrieving information about the system.
Methods
getCpuUsage()
The getCpuUsage()
method returns current CPU usage (ranging 0-100).
getCpuUsage(): Promise<number>;
getInfo()
The getInfo()
method returns info about the system of the device, such as what current version of it is installed on a device. Major
version of current operating system. It's usually 1 or 2 digits including or excluding dot notation.
getInfo(): Promise<IOSInfo>;
getMemoryUsage()
The getMemoryUsage()
method returns total memory amount in bytes, currently used memory and remaining free memory.
getMemoryUsage(): Promise<SystemMemoryInfo>;