Frontend Changes + Model angepasst

This commit is contained in:
2025-10-29 12:11:03 +01:00
parent f113147972
commit e1684d4484
6 changed files with 395 additions and 14 deletions

View File

@@ -1,12 +1,12 @@
import json
import urllib.request
url = "http://localhost:5000/monitoring/service-discovery"
url = "http://localhost:5000/monitoring/ServiceDetection"
payload = {
"ServerId": 1,
"ContainerId": "aaaaaaaaaaaa",
"Name": "test-Name",
"Image": "test-Image"
"server_id": 2,
"containers": [
{"ContainerId": "hr1nm432143nkj", "Name": "Name des Containers", "Image": "ghcr.io/test/container:latest"}
]
}
data = json.dumps(payload).encode("utf-8")