WhiteRabbit Health Model

An implementation of a health model for a SatWhiteRabbit.

class TSRCRole(value)

Define tsrc roles from SNMP Enum type.

class WRState(value)

Define error conditions from SNMP Enum type.

class WhiteRabbitHealthModel(logger)

A health model for a white rabbit.

__init__(logger)

Initialise a new instance.

Parameters:

logger (Logger) – the logger

evaluate_health(params)

Compute overall health of the whiterabbit.

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, list]

Returns:

the overall health & a health report