dominus-sdk-python-dev 2.1.6__py3-none-any.whl → 2.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dominus/__init__.py +47 -47
- dominus/config/__init__.py +24 -24
- dominus/config/endpoints.py +39 -39
- dominus/errors.py +201 -201
- dominus/helpers/__init__.py +2 -2
- dominus/helpers/auth.py +23 -23
- dominus/helpers/cache.py +192 -192
- dominus/helpers/core.py +657 -657
- dominus/helpers/crypto.py +118 -118
- dominus/namespaces/__init__.py +26 -26
- dominus/namespaces/_deprecated_crossover.py +10 -10
- dominus/namespaces/_deprecated_sql.py +1341 -1341
- dominus/namespaces/auth.py +1056 -1056
- dominus/namespaces/courier.py +251 -251
- dominus/namespaces/db.py +267 -267
- dominus/namespaces/ddl.py +590 -590
- dominus/namespaces/files.py +299 -299
- dominus/namespaces/health.py +59 -59
- dominus/namespaces/logs.py +367 -367
- dominus/namespaces/open.py +72 -72
- dominus/namespaces/portal.py +504 -504
- dominus/namespaces/redis.py +357 -357
- dominus/namespaces/secrets.py +126 -126
- dominus/services/__init__.py +2 -2
- dominus/services/_deprecated_architect.py +323 -323
- dominus/services/_deprecated_sovereign.py +93 -93
- dominus/start.py +1034 -1034
- {dominus_sdk_python_dev-2.1.6.dist-info → dominus_sdk_python_dev-2.1.7.dist-info}/METADATA +381 -381
- dominus_sdk_python_dev-2.1.7.dist-info/RECORD +31 -0
- dominus_sdk_python_dev-2.1.6.dist-info/RECORD +0 -31
- {dominus_sdk_python_dev-2.1.6.dist-info → dominus_sdk_python_dev-2.1.7.dist-info}/WHEEL +0 -0
- {dominus_sdk_python_dev-2.1.6.dist-info → dominus_sdk_python_dev-2.1.7.dist-info}/top_level.txt +0 -0
dominus/namespaces/health.py
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Health Namespace - Service health check operations.
|
|
3
|
-
|
|
4
|
-
Provides health check endpoints for the orchestrator service.
|
|
5
|
-
"""
|
|
6
|
-
from typing import Any, Dict, TYPE_CHECKING
|
|
7
|
-
|
|
8
|
-
if TYPE_CHECKING:
|
|
9
|
-
from ..start import Dominus
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class HealthNamespace:
|
|
13
|
-
"""
|
|
14
|
-
Health check namespace.
|
|
15
|
-
|
|
16
|
-
Usage:
|
|
17
|
-
status = await dominus.health.check()
|
|
18
|
-
await dominus.health.ping()
|
|
19
|
-
await dominus.health.warmup()
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
def __init__(self, client: "Dominus"):
|
|
23
|
-
self._client = client
|
|
24
|
-
|
|
25
|
-
async def check(self) -> Dict[str, Any]:
|
|
26
|
-
"""
|
|
27
|
-
Perform comprehensive health check of orchestrator and dependencies.
|
|
28
|
-
|
|
29
|
-
Returns:
|
|
30
|
-
Dict with "status", "latency_ms", and service-specific info
|
|
31
|
-
"""
|
|
32
|
-
from ..helpers.core import health_check
|
|
33
|
-
from ..config.endpoints import get_base_url
|
|
34
|
-
|
|
35
|
-
return await health_check(get_base_url())
|
|
36
|
-
|
|
37
|
-
async def ping(self) -> Dict[str, Any]:
|
|
38
|
-
"""
|
|
39
|
-
Simple ping check (fastest response).
|
|
40
|
-
|
|
41
|
-
Returns:
|
|
42
|
-
Dict with "status": "ok"
|
|
43
|
-
"""
|
|
44
|
-
return await self._client._request(
|
|
45
|
-
endpoint="/api/health/ping",
|
|
46
|
-
method="GET"
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
async def warmup(self) -> Dict[str, Any]:
|
|
50
|
-
"""
|
|
51
|
-
Warmup request (triggers cold start if needed).
|
|
52
|
-
|
|
53
|
-
Returns:
|
|
54
|
-
Dict with warmup status
|
|
55
|
-
"""
|
|
56
|
-
return await self._client._request(
|
|
57
|
-
endpoint="/api/health/warmup",
|
|
58
|
-
method="GET"
|
|
59
|
-
)
|
|
1
|
+
"""
|
|
2
|
+
Health Namespace - Service health check operations.
|
|
3
|
+
|
|
4
|
+
Provides health check endpoints for the orchestrator service.
|
|
5
|
+
"""
|
|
6
|
+
from typing import Any, Dict, TYPE_CHECKING
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..start import Dominus
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class HealthNamespace:
|
|
13
|
+
"""
|
|
14
|
+
Health check namespace.
|
|
15
|
+
|
|
16
|
+
Usage:
|
|
17
|
+
status = await dominus.health.check()
|
|
18
|
+
await dominus.health.ping()
|
|
19
|
+
await dominus.health.warmup()
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
def __init__(self, client: "Dominus"):
|
|
23
|
+
self._client = client
|
|
24
|
+
|
|
25
|
+
async def check(self) -> Dict[str, Any]:
|
|
26
|
+
"""
|
|
27
|
+
Perform comprehensive health check of orchestrator and dependencies.
|
|
28
|
+
|
|
29
|
+
Returns:
|
|
30
|
+
Dict with "status", "latency_ms", and service-specific info
|
|
31
|
+
"""
|
|
32
|
+
from ..helpers.core import health_check
|
|
33
|
+
from ..config.endpoints import get_base_url
|
|
34
|
+
|
|
35
|
+
return await health_check(get_base_url())
|
|
36
|
+
|
|
37
|
+
async def ping(self) -> Dict[str, Any]:
|
|
38
|
+
"""
|
|
39
|
+
Simple ping check (fastest response).
|
|
40
|
+
|
|
41
|
+
Returns:
|
|
42
|
+
Dict with "status": "ok"
|
|
43
|
+
"""
|
|
44
|
+
return await self._client._request(
|
|
45
|
+
endpoint="/api/health/ping",
|
|
46
|
+
method="GET"
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
async def warmup(self) -> Dict[str, Any]:
|
|
50
|
+
"""
|
|
51
|
+
Warmup request (triggers cold start if needed).
|
|
52
|
+
|
|
53
|
+
Returns:
|
|
54
|
+
Dict with warmup status
|
|
55
|
+
"""
|
|
56
|
+
return await self._client._request(
|
|
57
|
+
endpoint="/api/health/warmup",
|
|
58
|
+
method="GET"
|
|
59
|
+
)
|