Spaces:
Sleeping
Sleeping
Create ingest/health.py
Browse files- ingest/health.py +8 -0
ingest/health.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import time
|
| 2 |
+
from dataclasses import dataclass
|
| 3 |
+
|
| 4 |
+
@dataclass
|
| 5 |
+
class HealthStatus:
|
| 6 |
+
ok: bool
|
| 7 |
+
latency_ms: int
|
| 8 |
+
error: str | None = None
|