Replaced health checker with Prometheus metrics service.
Audit / Dependencies (push) Failing after 8s
CD / Build (push) Successful in 8s
CI / Formatting (push) Successful in 6s
CI / Linting (push) Successful in 6s
CI / Tests (push) Successful in 11s
CI / Type Checking (push) Successful in 14s
CI / Spelling (push) Successful in 13s
Audit / Dependencies (push) Failing after 8s
CD / Build (push) Successful in 8s
CI / Formatting (push) Successful in 6s
CI / Linting (push) Successful in 6s
CI / Tests (push) Successful in 11s
CI / Type Checking (push) Successful in 14s
CI / Spelling (push) Successful in 13s
This commit is contained in:
@@ -99,20 +99,6 @@ class UpdateResult:
|
||||
successful_checks: int
|
||||
failed_checks: int
|
||||
|
||||
@property
|
||||
def http_healthy(self) -> bool:
|
||||
"""Determine HTTP health based on update results.
|
||||
|
||||
HTTP is considered healthy if:
|
||||
- No streams are subscribed (nothing to check), OR
|
||||
- At least one stream check succeeded
|
||||
|
||||
:return: True if HTTP is considered healthy.
|
||||
"""
|
||||
if self.total_streams == 0:
|
||||
return True
|
||||
return self.successful_checks > 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class StreamConfig:
|
||||
|
||||
Reference in New Issue
Block a user