Spaces:
Sleeping
Sleeping
Create ingest/health.py
Browse files- ingest/health.py +6 -8
ingest/health.py
CHANGED
|
@@ -1,8 +1,6 @@
|
|
| 1 |
-
def
|
| 2 |
-
return {
|
| 3 |
-
"
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
}
|
| 8 |
-
}
|
|
|
|
| 1 |
+
def adapter_health(adapters):
|
| 2 |
+
return [{
|
| 3 |
+
"agency": a.source_name,
|
| 4 |
+
"health": a.health,
|
| 5 |
+
"live": a.is_live
|
| 6 |
+
} for a in adapters]
|
|
|
|
|
|