GodsDevProject commited on
Commit
2632d51
·
verified ·
1 Parent(s): 26921eb

Create ingest/health.py

Browse files
Files changed (1) hide show
  1. ingest/health.py +6 -8
ingest/health.py CHANGED
@@ -1,8 +1,6 @@
1
- def get_health_snapshot():
2
- return {
3
- "CIA FOIA Reading Room": {
4
- "status": "OK",
5
- "latency": "normal",
6
- "public_only": True
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]