Files
html/api/v73-gap-agents.sh

16 lines
890 B
Bash
Executable File

#!/bin/bash
echo "=== GAP AGENTS (méthode Scrum/SAFe/Agile/DevOps/OKR) ==="
curl -sk --max-time 4 http://127.0.0.1:5890/api/wevia-v71-intelligence-growth.php -H "Host: weval-consulting.com" 2>/dev/null > /tmp/v73_v71.json
python3 << 'PY2'
import json
d = json.load(open('/tmp/v73_v71.json'))
g = d['agility_agents_gap']
total_fte = g.get('total_fte_saved_year', sum(a.get('savings_fte_year',0) for a in g['agents']))
total_keur = g.get('total_savings_keur_year', int(total_fte * 90))
print(f"{len(g['agents'])} agents à construire · {total_fte:.1f} FTE/an savings · {total_keur}k€ potentiel")
print('')
for a in g['agents']:
status_em = {'to_build':'🔨','partial':'⚙️','deployed':'✅'}.get(a.get('status','to_build'),'?')
print(f" {status_em} {a.get('name','?'):<35} [{a.get('framework','?'):<8}] {a.get('savings_fte_year',0):.1f} FTE · {a.get('priority','?')}")
PY2