cata_log_hub.health module
- cata_log_hub.health.check_scheduler()[source]
Check whether the scheduler is up.
- Return type:
- Raises;
HealthCheckFailedError: If the scheduler is down.
- cata_log_hub.health.check_memory()[source]
Check the memory usage.
- Return type:
- Raises;
HealthCheckFailedError: If memory usage is high.
- cata_log_hub.health.check_diskspace()[source]
Check the disk usage.
- Return type:
- Raises;
HealthCheckFailedError: If disk usage is high.
- cata_log_hub.health.check_database()[source]
Check connection to the database.
- Return type:
- Raises;
HealthCheckFailedError: If connecting to the database fails.
- cata_log_hub.health.check_internet()[source]
Check the internet connection.
- Return type:
- Raises;
HealthCheckFailedError: If no internet connection can be established.
- cata_log_hub.health.check_storage_io()[source]
Check writing the storage.
- Return type:
- 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:
- Raises;
HealthCheckFailedError: If any healthcheck fails.