cata_log_hub.health module

cata_log_hub.health.check_scheduler()[source]

Check whether the scheduler is up.

Return type:

None

Raises;

HealthCheckFailedError: If the scheduler is down.

cata_log_hub.health.check_memory()[source]

Check the memory usage.

Return type:

None

Raises;

HealthCheckFailedError: If memory usage is high.

cata_log_hub.health.check_diskspace()[source]

Check the disk usage.

Return type:

None

Raises;

HealthCheckFailedError: If disk usage is high.

cata_log_hub.health.check_database()[source]

Check connection to the database.

Return type:

None

Raises;

HealthCheckFailedError: If connecting to the database fails.

cata_log_hub.health.check_internet()[source]

Check the internet connection.

Return type:

None

Raises;

HealthCheckFailedError: If no internet connection can be established.

cata_log_hub.health.check_storage_io()[source]

Check writing the storage.

Return type:

None

Raises;

HealthCheckFailedError: If an error occurs in IO with the storage.

cata_log_hub.health.check()[source]

Check the health of the different parts of the application.

Return type:

None

Raises;

HealthCheckFailedError: If any healthcheck fails.

cata_log_hub.health.healthcheck()[source]

HTTP endpoint to trigger healthchecks.

Return type:

None