Volledig statusoverzicht — systeem health, git, live site, data kwaliteit. Gebruik bij "status", "health", "gezondheid", "werkt alles?", "systeem check", "overzicht".
Volledig statusoverzicht van Gameshop Enter. Voer ALLES parallel uit.
git status --short && echo "---" && git log --oneline -5
curl -s "https://gameshopenter.com/api/admin/health?key=gameshop-admin-2024" | python3 -c "
import json, sys
d = json.load(sys.stdin)
print(f'Health: {\"HEALTHY\" if d.get(\"healthy\") else \"UNHEALTHY\"}')
for name, check in d.get('checks', {}).items():
s = 'OK' if check.get('ok') else 'FAIL'
ms = check.get('ms', '?')
detail = check.get('count', check.get('age', check.get('version', '')))
print(f' {name}: {s} ({ms}ms) {detail}')
"
curl -s -H "User-Agent: Mozilla/5.0" "https://gameshopenter.com/api/products?t=$(date +%s)" | python3 -c "
import json, sys
d = json.load(sys.stdin)
p = d.get('products', [])
instock = [x for x in p if not x.get('soldOut')]
sealed = [x for x in p if x.get('isSealed')]
deals = [x for x in p if x.get('isWeekDeal')]
prices = [x['price'] for x in instock]
dupes = [s for s in set(x['sku'] for x in p) if [x['sku'] for x in p].count(s) > 1]
bad95 = [x['sku'] for x in p if not str(x.get('price',0)).endswith('95')]
no_img = [x['sku'] for x in p if not x.get('image')]
print(f'{len(p)} producten | {len(instock)} op voorraad | {len(sealed)} sealed | {len(deals)} deals')
if prices: print(f'Prijsrange: EUR {min(prices):.2f} - EUR {max(prices):.2f} (gem EUR {sum(prices)/len(prices):.2f})')
issues = []
if dupes: issues.append(f'Duplicaten: {dupes}')
if bad95: issues.append(f'Prijs niet .95: {bad95[:3]}')
if no_img: issues.append(f'Zonder foto: {no_img[:3]}')
print('Data: CLEAN' if not issues else 'ISSUES: ' + ' | '.join(issues))
"
for url in '/' '/shop' '/api/products' '/shop/NDS-001' '/google-shopping.xml' '/sitemap.xml'; do
code=$(curl -s -o /dev/null -w '%{http_code}' -H "User-Agent: Mozilla/5.0" "https://gameshopenter.com$url" --max-time 10)
echo "$url: $code"
done
curl -s -H "Authorization: Bearer gameshop-admin-2024" -H "User-Agent: Mozilla/5.0" "https://gameshopenter.com/api/admin/dashboard?key=gameshop-admin-2024" | python3 -c "
import json, sys
d = json.load(sys.stdin)
t = d.get('today', {})
w = d.get('week', {})
m = d.get('month', {})
print(f'Vandaag: {t.get(\"orders\",0)} orders, EUR {t.get(\"revenue\",0):.2f}')
print(f'Week: {w.get(\"orders\",0)} orders, EUR {w.get(\"revenue\",0):.2f}')
print(f'Maand: {m.get(\"orders\",0)} orders, EUR {m.get(\"revenue\",0):.2f}')
"
| Item | Status |
|---|---|
| Git | schoon / X uncommitted |
| Health | Healthy / UNHEALTHY |
| Producten | X live, Y sealed, Z deals |
| Data | CLEAN / issues |
| Endpoints | alle 200 / fouten |
| Orders | vandaag X, week Y, maand Z |