spakky-actuator¶
Actuator 상태/정보 계약 — Health, Readiness, Liveness, Info
결과 계약¶
Transport-neutral actuator result contracts.
HealthStatus
¶
Bases: StrEnum
Aggregate or component health status.
ActuatorEndpoint
¶
Bases: StrEnum
Transport-neutral actuator endpoint kinds.
ComponentHealthResult
¶
Health result for one actuator component.
healthy(name, *, required=True, details=None)
classmethod
¶
Create a healthy component result.
Source code in core/spakky-actuator/src/spakky/actuator/result.py
unhealthy(name, *, required=True, details=None)
classmethod
¶
Create an unhealthy component result.
Source code in core/spakky-actuator/src/spakky/actuator/result.py
ActuatorHealthResult
¶
Aggregate actuator health result.
healthy_baseline(endpoint)
classmethod
¶
Create deterministic healthy baseline result for no probes.
from_components(endpoint, components)
classmethod
¶
Create aggregate result from component results.
Source code in core/spakky-actuator/src/spakky/actuator/result.py
Service¶
Actuator aggregation service.
ActuatorAggregationService(registry, config=None)
¶
Aggregate health probes and info contributors into actuator results.
Initialize the aggregation service.
Source code in core/spakky-actuator/src/spakky/actuator/service.py
evaluate_health()
¶
evaluate_readiness()
¶
evaluate_liveness()
¶
evaluate_health_async()
async
¶
evaluate_readiness_async()
async
¶
Evaluate the readiness endpoint asynchronously.
evaluate_liveness_async()
async
¶
Evaluate the liveness endpoint asynchronously.
evaluate_info()
¶
Evaluate synchronous info contributors.
Source code in core/spakky-actuator/src/spakky/actuator/service.py
evaluate_info_async()
async
¶
Evaluate sync and async info contributors.
Source code in core/spakky-actuator/src/spakky/actuator/service.py
Registry¶
Registry for DI-managed actuator extensions.
ActuatorExtensionRegistry()
¶
In-memory registry populated from DI-managed actuator extensions.
Initialize an empty actuator extension registry.
Source code in core/spakky-actuator/src/spakky/actuator/registry.py
register_health_probe(probe)
¶
register_async_health_probe(probe)
¶
register_info_contributor(contributor)
¶
register_async_info_contributor(contributor)
¶
Register an asynchronous info contributor.
health_probes()
¶
Return registered synchronous health probes sorted by name.
async_health_probes()
¶
Return registered asynchronous health probes sorted by name.
info_contributors()
¶
Return registered synchronous info contributors sorted by name.
Source code in core/spakky-actuator/src/spakky/actuator/registry.py
async_info_contributors()
¶
Return registered asynchronous info contributors sorted by name.
Source code in core/spakky-actuator/src/spakky/actuator/registry.py
확장 인터페이스¶
Health probe extension points.
AbstractHealthProbe
¶
AbstractAsyncHealthProbe
¶
Info contributor extension points.
IInfoContributor
¶
기본 Contributor¶
Built-in actuator info contributors.
StartupReportInfoContributor(report_provider)
¶
Bases: IInfoContributor
Expose startup diagnostics through actuator info.
Source code in core/spakky-actuator/src/spakky/actuator/contributors.py
설정¶
Actuator configuration contract.
ActuatorConfig(include_details=True)
¶
Configuration for actuator aggregation behavior.
Initialize actuator configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
include_details
|
bool
|
Whether component details should be exposed. |
True
|
Source code in core/spakky-actuator/src/spakky/actuator/config.py
후처리기¶
Actuator extension registration post-processor.
ActuatorExtensionPostProcessor(registry)
¶
Bases: IPostProcessor
Collect DI-managed actuator extension pods into the registry.
Initialize with the shared actuator extension registry.
Source code in core/spakky-actuator/src/spakky/actuator/post_processor.py
post_process(pod)
¶
Register actuator extension pods and return them unmodified.
Source code in core/spakky-actuator/src/spakky/actuator/post_processor.py
플러그인 진입점¶
Plugin initialization entry point.
initialize(app)
¶
Initialize the spakky-actuator plugin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app
|
SpakkyApplication
|
The SpakkyApplication instance. |
required |