Subarray Health Rules
The rules model for subarray health.
- class SubarrayHealthRules(*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_healths, beam_healths)
Test whether DEGRADED is valid for the station.
- Parameters:
station_healths (
dict
[str
,Optional
[HealthState
]]) – The healths of the station subdevices.beam_healths (
dict
[str
,Optional
[HealthState
]]) – The healths of the subarray beams.
- Return type:
- Returns:
If the subarray is degraded or not.
- failed_rule(station_healths, beam_healths)
Test whether FAILED is valid for the station.
- Parameters:
station_healths (
dict
[str
,Optional
[HealthState
]]) – The healths of the station subdevices.beam_healths (
dict
[str
,Optional
[HealthState
]]) – The healths of the subarray beams.
- Return type:
- Returns:
If the subarray is failed or not.
- healthy_rule(station_healths, beam_healths)
Test whether OK is valid for the station.
- Parameters:
station_healths (
dict
[str
,Optional
[HealthState
]]) – The healths of the station subdevices.beam_healths (
dict
[str
,Optional
[HealthState
]]) – The healths of the subarray beams.
- Return type:
- Returns:
If the subarray is healthy or not.
- unknown_rule(station_healths, beam_healths)
Test whether UNKNOWN is valid for the station.
- Parameters:
station_healths (
dict
[str
,Optional
[HealthState
]]) – The healths of the station subdevices.beam_healths (
dict
[str
,Optional
[HealthState
]]) – The healths of the subarray beams.
- Return type:
- Returns:
If the subarray is in unknown state.