NetTime Health Model

An implementation of a health model for a SatNetTime.

class NetTimeClockHealthModel(component_changed_callback, logger)

A health model for NetTime.

__init__(component_changed_callback, logger)

Initialise a new instance.

Parameters:
  • component_changed_callback (Callable[[Any], None]) – callback to be called whenever there is a change to this health model’s evaluated health state.

  • logger (Logger) – the logger

evaluate_health()

Compute overall health of the net.time clock.

As the attributes general_status, timing_status & system_status are enum’s the value of the of each will also determine the healthstate as well as any attribute outside the min/max alarm levels. The only time HealthState is UNKNOWN is before the server has communicated with the SNMP device. Once communication has been established and it fails then HealthState will be FAILED.

Return type:

tuple[HealthState, str]

Returns:

the overall health & a health report