paradrop.core.system.system_status module
Get system running status including CPU load, memory usage, network traffic.
-
class
SystemStatus[source]
Bases: object
-
INCLUDED_PARTITIONS = set(['/writable', '/'])
-
classmethod
getNetworkInfo()[source]
-
classmethod
getProcessInfo(pid)[source]
-
getStatus(max_age=0.8)[source]
Get current system status.
max_age: maximum tolerable age of cached status information. Set to
None to force a refresh regardless of cache age.
Returns a dictionary with fields ‘cpu_load’, ‘mem’, ‘disk’, and
‘network’.
-
classmethod
getSystemInfo()[source]
-
refreshCpuLoad()[source]
-
refreshDiskInfo()[source]
-
refreshMemoryInfo()[source]
-
refreshNetworkTraffic()[source]