Station Beam Health Rules

A file to store health transition rules for station.

class StationBeamHealthRules(*args, **kwargs)

A class to handle transition rules for station.

property default_thresholds: dict[str, float]

Get the default thresholds for this device.

Returns:

the default thresholds

degraded_rule(station_fault, antenna_healths)

Test whether DEGRADED is valid for the station.

Parameters:
Return type:

bool

Returns:

If the station beam is degraded or not.

failed_rule(station_fault, antenna_healths)

Test whether FAILED is valid for the station beam.

Parameters:
Return type:

bool

Returns:

If the station beam is failed or not.

healthy_rule(station_fault, antenna_healths)

Test whether OK is valid for the station.

Parameters:
Return type:

bool

Returns:

If the station beam is healthy or not.

unknown_rule(station_fault, antenna_healths)

Test whether UNKNOWN is valid for the station beam.

Parameters:
Return type:

bool

Returns:

If the station beam is in unknown state.