- Frontend v4 accessible sur réseau local (192.168.1.40) - Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard) - Ollama GPU fonctionnel - Self-healing interactif - Dashboard confiance Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
65 lines
2.2 KiB
Python
65 lines
2.2 KiB
Python
oard_api()hb test_das":
|
|
n__ == "__mai__name__")
|
|
|
|
if r: {e}rroce e web interfaoardshb❌ Da print(f":
|
|
tion as eexcept Excep)
|
|
_code}"usnse.statd: {respofaileerface web int❌ Dashboard(f"nt pri else:
|
|
e")
|
|
siblcces a interfaceashboard web"✅ Drint( p 0:
|
|
20de == status_coesponse.if r /")
|
|
{base_url}f".get( = requestsse respon y:
|
|
trssibility
|
|
acceshboardTest da
|
|
# print()
|
|
|
|
")
|
|
e}r: { errons APIf"❌ Sessiot( prin:
|
|
n as eptioexcept Exce ")
|
|
.text}nse: {respo" Responseprint(f
|
|
_code}")nse.status{respo failed: sions APIint(f"❌ Sespr
|
|
else:")
|
|
PI by Aeturnedsions r" No sesprint( else:
|
|
|
|
")5} more']) - ssionsn(data['sed {lean ... int(f" pr
|
|
) > 5:ssions'](data['se if len enshots")
|
|
ount']} screts_cscreensho, {session['} eventsents_count']evsion['d']}: {sesion_in['sesssioes" - {snt(fpri t 5
|
|
# Show firsions'][:5]: essa['sion in datss for se
|
|
s:")on" Sessint( pri ']:
|
|
sessionsf data[' i
|
|
)
|
|
nd"sions fouestotal']} sI: {data['s APf"✅ Sessionint(pr
|
|
e.json()a = respons dat200:
|
|
e == codnse.status_ if respo
|
|
ions")nt/sessurl}/api/agef"{base_s.get(se = requestrespon y:
|
|
|
|
tr listessions s# Test
|
|
|
|
print()
|
|
{e}")
|
|
r: s errostem statuSy❌ print(f" tion as e:
|
|
pt Excep")
|
|
excetus_code}response.staailed: { ftatusSystem s"❌ nt(f prise:
|
|
el )
|
|
]}"ws_count'a['workflot: {datrkflows counnt(f" Wo pri ")
|
|
t']}s_counsessionnt: {data['Sessions couint(f" pr)
|
|
tus']}"ta['staStatus: {da"✅ System print(f e.json()
|
|
esponsdata = r 200:
|
|
== _codese.status if respon tus")
|
|
tem/sta}/api/sysrlt(f"{base_urequests.gense = espo:
|
|
rtus
|
|
tryem stasystest # T
|
|
|
|
"=" * 50)rint( p")
|
|
APIhboardesting Dasrint("🔍 T
|
|
p"
|
|
0.0.1:5001/127.p:/= "httl ur base_""
|
|
ts."ndpoinI eboard APt the dash""Tes
|
|
"pi():oard_a test_dashb json
|
|
|
|
defests
|
|
import requportim
|
|
|
|
e
|
|
"""siblons are vissisee if sePI to Ae dashboardest th"""
|
|
Ton3
|
|
nv pyth#!/usr/bin/e |