Skip to content

src/dazzle_back/runtime/system_entity_store.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Virtual entity store for platform system entities.

Routes read operations to existing backing stores (health aggregator, metrics store, process monitor) instead of PostgreSQL. Write operations are blocked — these entities are read-only projections.

Key Exports

  • SystemEntityStore
  • list
  • get
  • create
  • update
  • delete

Dependencies

Imports

  • builtins
  • uuid
  • datetime.UTC
  • datetime.datetime
  • typing.Any
  • dazzle_back.runtime.logging.get_recent_logs
  • json

Event Interactions

None detected.

Invariants and Assumptions

  • Validates: Unknown virtual entity: {self.entity_name}
  • Assert: self._health_aggregator is not None
  • Assert: self._metrics_store is not None
  • Assert: self._process_monitor is not None

Tests

  • tests/unit/test_system_entity_store.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.