Antenna Health Rules
A file to store health transition rules for antenna.
- class AntennaHealthRules(*args: Any, **kwargs: Any)[source]
A class to handle transition rules for antenna.
- property default_thresholds: dict[str, float]
Get the default thresholds for this device.
- Returns:
the default thresholds
- degraded_rule(smartbox_health: HealthState | None, tile_health: HealthState | None, antenna_health: HealthState, tile_adc_rms: tuple[float, float] | None) bool[source]
Test whether DEGRADED is valid for the antenna.
- Parameters:
smartbox_health – health of the SmartBox
tile_health – health of the Tile
antenna_health – the antenna’s computed health from it’s communication and fault states, among others. Does not include monitoring points.
tile_adc_rms – tuple of x and y ADC RMS power for this antenna read from the tile
- Returns:
True if DEGRADED is a valid state
- failed_rule(smartbox_health: HealthState | None, tile_health: HealthState | None, antenna_health: HealthState, tile_adc_rms: tuple[float, float] | None) bool[source]
Test whether FAILED is valid for the antenna.
- Parameters:
smartbox_health – health of the SmartBox
tile_health – health of the Tile
antenna_health – the antenna’s computed health from it’s communication and fault states, among others. Does not include monitoring points.
tile_adc_rms – tuple of x and y ADC RMS power for this antenna read from the tile
- Returns:
True if FAILED is a valid state
- healthy_rule(smartbox_health: HealthState | None, tile_health: HealthState | None, antenna_health: HealthState, tile_adc_rms: tuple[float, float] | None) bool[source]
Test whether OK is valid for the antenna.
- Parameters:
smartbox_health – health of the SmartBox
tile_health – health of the Tile
antenna_health – the antenna’s computed health from it’s communication and fault states, among others. Does not include monitoring points.
tile_adc_rms – tuple of x and y ADC RMS power for this antenna read from the tile
- Returns:
True if OK is a valid state
- unknown_rule(smartbox_health: HealthState | None, tile_health: HealthState | None, antenna_health: HealthState, tile_adc_rms: tuple[float, float] | None) bool[source]
Test whether UNKNOWN is valid for the antenna.
- Parameters:
smartbox_health – health of the SmartBox
tile_health – health of the Tile
antenna_health – the antenna’s computed health from it’s communication and fault states, among others. Does not include monitoring points.
tile_adc_rms – tuple of x and y ADC RMS power for this antenna read from the tile
- Returns:
True if UNKNOWN is a valid state