Station Health Rules
A file to store health transition rules for station.
- class StationHealthRules(*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(field_station_health, sps_station_health, antenna_healths)
Test whether DEGRADED is valid for the station.
- failed_rule(field_station_health, sps_station_health, antenna_healths)
Test whether FAILED is valid for the station.
- healthy_rule(field_station_health, sps_station_health, antenna_healths)
Test whether OK is valid for the station.
- Parameters:
- Return type:
- Returns:
True if OK is a valid state or if station is empty
- unknown_rule(field_station_health, sps_station_health, antenna_healths)
Test whether UNKNOWN is valid for the station.