phc2sys_monitor_task
Monitor task for phc2sys systemd units.
Classes:
-
Phc2SysMonitorTask–Monitor task for a phc2sys systemd unit.
Phc2SysMonitorTask
Bases: MonitorTask
Monitor task for a phc2sys systemd unit.
Parameters:
Raises:
-
FileNotFoundError–If the unit does not exist.
Methods:
-
__str__–Return a string representation of the task.
-
phc2sys_to_graph_updates–Convert a phc2sys state change to graph updates.
-
poll–Poll journal for updates, yielding graph updates.
-
run_loop–Run the polling loop at the specified period.
-
stop–Stop the monitoring loop.
phc2sys_to_graph_updates
phc2sys_to_graph_updates(
state_change: SystemdUnitStateChange,
)
Convert a phc2sys state change to graph updates.