janitoo_hostsensor.hostsensor module
The hostsensor Janitoo helper
-
class
janitoo_hostsensor.hostsensor.HostSensorThread(options=None)[source]
Bases: janitoo.thread.JNTBusThread
The HostSensor thread
-
init_bus()[source]
Build the bus
-
class
janitoo_hostsensor.hostsensor.Load(bus=None, addr=None, **kwargs)[source]
Bases: janitoo.component.JNTComponent
Return Load system
-
check_heartbeat()[source]
Check that the component is ‘available’
-
get_config(node_uuid, index)[source]
-
get_load_average(node_uuid, index)[source]
-
class
janitoo_hostsensor.hostsensor.Uptime(bus=None, addr=None, **kwargs)[source]
Bases: janitoo.component.JNTComponent
Return Load system
-
check_heartbeat()[source]
Check that the component is ‘available’
-
get_uptime(node_uuid, index)[source]
-
janitoo_hostsensor.hostsensor.make_load(**kwargs)[source]
-
janitoo_hostsensor.hostsensor.make_thread(options, force=False)[source]
-
janitoo_hostsensor.hostsensor.make_uptime(**kwargs)[source]