ptp4l_monitor_task
Monitor task for ptp4l systemd units.
Classes:
-
Ptp4lMonitorTask–Monitor task for a ptp4l systemd unit.
Ptp4lMonitorTask
Bases: MonitorTask
Monitor task for a ptp4l systemd unit.
Parameters:
Raises:
-
FileNotFoundError–If the unit does not exist.
Methods:
-
__str__–Return a string representation of the task.
-
pmc_to_graph_updates–Convert a PTP instance state to graph updates.
-
poll–Poll journal and PMC for updates, yielding graph updates.
-
ptp4l_to_graph_updates–Convert a ptp4l state change to graph updates (currently unused).
-
run_loop–Run the polling loop at the specified period.
-
stop–Stop the monitor task and reset the PMC monitor.
pmc_to_graph_updates
pmc_to_graph_updates(inst: PtpInstance)
Convert a PTP instance state to graph updates.
ptp4l_to_graph_updates
ptp4l_to_graph_updates(
state_change: SystemdUnitStateChange,
)
Convert a ptp4l state change to graph updates (currently unused).