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.
@@ -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
+ )