Skip to content

src/dazzle_back/runtime/health_aggregator.py

Generated: 2026-03-30T04:38:47.355465+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Health Check Aggregator.

Aggregates health status from all system components: - Database connectivity - Event bus status - External API connections - Background workers - WebSocket connections

Emits health events for SSE streaming.

Key Exports

  • AggregateStatus
  • ComponentHealth
  • SystemHealth
  • HealthAggregator
  • create_database_check
  • create_event_bus_check
  • create_external_api_check
  • create_websocket_check
  • total_components
  • to_dict
  • register
  • unregister
  • check_component
  • check_all
  • get_latest
  • start_periodic_checks
  • stop_periodic_checks
  • check
  • check
  • check

Dependencies

Imports

  • __future__.annotations
  • asyncio
  • logging
  • time
  • collections.abc.Callable
  • collections.abc.Coroutine
  • dataclasses.dataclass
  • dataclasses.field
  • datetime.UTC
  • datetime.datetime
  • enum.StrEnum
  • typing.TYPE_CHECKING
  • typing.Any
  • uuid.uuid4
  • dazzle_back.runtime.ops_database.ComponentType
  • dazzle_back.runtime.ops_database.HealthCheckRecord
  • dazzle_back.runtime.ops_database.HealthStatus
  • dazzle_back.runtime.ops_database.OpsDatabase
  • dazzle_back.events.bus.EventBus
  • dazzle_back.events.envelope.EventEnvelope

Event Interactions

Emits: ops.health

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_health_aggregator_pg.py
  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.