in src/redash_stmo/data_sources/health.py [0:0]
def stmo_status_api():
status = original_get_status()
health_data = json.loads(redis_connection.get("data_sources:health") or "{}")
# Get the top level status for each data source
for health_data_point in health_data.values():
data_source_name = health_data_point["metadata"]["name"]
dashboard_label = "[Data Source Health] {name}".format(name=data_source_name)
status[dashboard_label] = health_data_point["status"]
return jsonify(status)