janitoo_hostsensor_psutil.component module
The Raspberry hardware worker
Define a node for the cpu with 3 values : temperature, frequency and voltage
http://www.maketecheasier.com/finding-raspberry-pi-system-information/
-
class
janitoo_hostsensor_psutil.component.
Disks
(bus=None, addr=None, **kwargs)[source]
Bases: janitoo.component.JNTComponent
Use psutil to retrieve informations.
-
check_heartbeat
()[source]
Check that the component is ‘available’
-
get_config
(node_uuid, index)[source]
-
get_free
(node_uuid, index)[source]
-
get_partition
(node_uuid, index)[source]
-
get_percent_use
(node_uuid, index)[source]
-
get_psutil
()[source]
-
get_total
(node_uuid, index)[source]
-
get_used
(node_uuid, index)[source]
-
class
janitoo_hostsensor_psutil.component.
PSUtilComponent
(**kwargs)[source]
Bases: janitoo.component.JNTComponent
-
check_heartbeat
()[source]
Check that the component is ‘available’
-
get_psutil
()[source]
-
start
(mqttc)[source]
Start the component. Can be used to start a thread to acquire data.
-
class
janitoo_hostsensor_psutil.component.
Processes
(bus=None, addr=None, **kwargs)[source]
Bases: janitoo_hostsensor_psutil.component.PSUtilComponent
Use psutil to retrieve informations.
-
get_connections
(node_uuid, index)[source]
-
get_cpu_percent
(node_uuid, index)[source]
-
get_io_counters_read
(node_uuid, index)[source]
-
get_io_counters_write
(node_uuid, index)[source]
-
get_memory_percent
(node_uuid, index)[source]
-
get_memory_vms
(node_uuid, index)[source]
-
get_num_ctx_switches_involuntary
(node_uuid, index)[source]
-
get_num_ctx_switches_voluntary
(node_uuid, index)[source]
-
get_num_fds
(node_uuid, index)[source]
-
get_num_threads
(node_uuid, index)[source]
-
get_open_files
(node_uuid, index)[source]
-
psutil_thread
(lock)[source]
-
janitoo_hostsensor_psutil.component.
make_disks
(**kwargs)[source]
-
janitoo_hostsensor_psutil.component.
make_processes
(**kwargs)[source]