documentdb
azure_bootstrap.documentdb
¶
MongoDB / Cosmos DB document database access.
Functions:
| Name | Description |
|---|---|
mongo_client_from_env |
Build a pymongo |
documentdb_health |
Return |
mongo_client_from_env
¶
Build a pymongo MongoClient from env.
Source code in azure_bootstrap/documentdb/__init__.py
documentdb_health
¶
documentdb_health(*, uri_env: str = 'NOSQL_URI', database_env: str = 'NOSQL_DATABASE') -> dict[str, Any]
Return {status, latency_ms} for health probes.