Files
MoFin/archive/20260722-scripts-cleanup/dump_health.py
T

5 lines
236 B
Python

import json, sys
line = sys.stdin.read().strip()
d = json.loads(line)
llm = d.get('llm_provider', {})
print(d['timestamp'], '| status:', d['status'], '| llm:', llm.get('status', '?'), '| best:', d.get('best_key', {}).get('key_id', '?'))