healthcheck

This commit is contained in:
Pablo Martin 2024-08-08 18:34:27 +02:00
parent dbba7a1090
commit f8e532d017
3 changed files with 21 additions and 1 deletions

View file

@ -4,6 +4,8 @@ import logging
import click
import pyfiglet
from anaxi.processes import run_cosmos_db_healthcheck_process
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s - [%(levelname)s] - %(filename)s - L%(lineno)d - %(message)s",
@ -32,3 +34,11 @@ def smoke_test():
|__,'`-..--|__|--''
"""
)
@cli.command()
@click.option("--cosmos-db-id", type=click.STRING)
def cosmos_db_healthcheck(cosmos_db_id):
logger.info("Starting a Cosmos DB healthcheck.")
run_cosmos_db_healthcheck_process(cosmos_db_id)
logger.info("Finished the Cosmos DB healthcheck.")