assets_guardian.core.domain.engines.check_engine๏ƒ

Classes

CheckEngine()

Validation engine for connectivity and configurations.

class assets_guardian.core.domain.engines.check_engine.CheckEngine[source]๏ƒ

Bases: object

Validation engine for connectivity and configurations.

run(ctx: Context) bool[source]๏ƒ

Runs global system checks and returns True if no errors are detected.

Parameters:

ctx โ€“ The application context.

Returns:

True if all configurations and connections are operational, False otherwise.

Return type:

bool

run_details(ctx: Context) dict[str, Any][source]๏ƒ

Generates a summary dictionary of all checks depending on the context mode.

Parameters:

ctx โ€“ The application context containing the configuration.

Returns:

Dictionary containing the status of each validation check.

Return type:

dict[str, Any]