Antenna Health Rules
A file to store health transition rules for antenna.
- class AntennaHealthRules(*args, **kwargs)
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, tile_health, antenna_health, tile_adc_rms)
Test whether DEGRADED is valid for the antenna.
- Parameters:
smartbox_health (HealthState | None) – health of the SmartBox
tile_health (HealthState | None) – health of the Tile
antenna_health (HealthState) – the antenna’s computed health from it’s communication and fault states, among others. Does not include monitoring points.
tile_adc_rms (tuple[float, float] | None) – tuple of x and y ADC RMS power for this antenna read from the tile
- Return type:
- Returns:
True if DEGRADED is a valid state
- failed_rule(smartbox_health, tile_health, antenna_health, tile_adc_rms)
Test whether FAILED is valid for the antenna.
- Parameters:
smartbox_health (HealthState | None) – health of the SmartBox
tile_health (HealthState | None) – health of the Tile
antenna_health (HealthState) – the antenna’s computed health from it’s communication and fault states, among others. Does not include monitoring points.
tile_adc_rms (tuple[float, float] | None) – tuple of x and y ADC RMS power for this antenna read from the tile
- Return type:
- Returns:
True if FAILED is a valid state
- healthy_rule(smartbox_health, tile_health, antenna_health, tile_adc_rms)
Test whether OK is valid for the antenna.
- Parameters:
smartbox_health (HealthState | None) – health of the SmartBox
tile_health (HealthState | None) – health of the Tile
antenna_health (HealthState) – the antenna’s computed health from it’s communication and fault states, among others. Does not include monitoring points.
tile_adc_rms (tuple[float, float] | None) – tuple of x and y ADC RMS power for this antenna read from the tile
- Return type:
- Returns:
True if OK is a valid state
- unknown_rule(smartbox_health, tile_health, antenna_health, tile_adc_rms)
Test whether UNKNOWN is valid for the antenna.
- Parameters:
smartbox_health (HealthState | None) – health of the SmartBox
tile_health (HealthState | None) – health of the Tile
antenna_health (HealthState) – the antenna’s computed health from it’s communication and fault states, among others. Does not include monitoring points.
tile_adc_rms (tuple[float, float] | None) – tuple of x and y ADC RMS power for this antenna read from the tile
- Return type:
- Returns:
True if UNKNOWN is a valid state