a gazillion things to implement cosmos db healthcheck

This commit is contained in:
Pablo Martin 2024-08-09 12:41:23 +02:00
parent 7af3b12c81
commit 91c79357f8
11 changed files with 421 additions and 15 deletions

13
anaxi/constants.py Normal file
View file

@ -0,0 +1,13 @@
import pathlib
from dataclasses import dataclass
@dataclass
class PATHS:
logging_file: pathlib.Path = pathlib.Path("anaxi.log")
# Expand user is important. It will replace the user and give you the full
# path. Stuff breaks without it.
config_home_path: pathlib.Path = pathlib.Path("~/.anaxi/").expanduser()
cosmos_db_config_file_path: pathlib.Path = config_home_path / pathlib.Path(
"cosmos-db.yml"
)