fix: correct API endpoints in node-guardian-loop script
This commit is contained in:
@@ -83,7 +83,7 @@ class NodeGuardian:
|
||||
"""Перевірити чи нода видима в Node Directory"""
|
||||
try:
|
||||
response = await self.client.get(
|
||||
f"{self.city_url}/internal/node/{self.node_id}/directory-check"
|
||||
f"{self.city_url}/city/internal/node/{self.node_id}/directory-check"
|
||||
)
|
||||
|
||||
if response.status_code == 200:
|
||||
@@ -99,7 +99,7 @@ class NodeGuardian:
|
||||
"""Отримати статус self-healing"""
|
||||
try:
|
||||
response = await self.client.get(
|
||||
f"{self.city_url}/internal/node/{self.node_id}/self-healing/status"
|
||||
f"{self.city_url}/city/internal/node/{self.node_id}/self-healing/status"
|
||||
)
|
||||
|
||||
if response.status_code == 200:
|
||||
@@ -122,7 +122,7 @@ class NodeGuardian:
|
||||
}
|
||||
|
||||
response = await self.client.post(
|
||||
f"{self.city_url}/internal/nodes/register-or-update",
|
||||
f"{self.city_url}/city/internal/nodes/register-or-update",
|
||||
json=payload
|
||||
)
|
||||
|
||||
@@ -147,7 +147,7 @@ class NodeGuardian:
|
||||
payload = {"metrics": metrics or {}}
|
||||
|
||||
response = await self.client.post(
|
||||
f"{self.city_url}/internal/node/{self.node_id}/heartbeat",
|
||||
f"{self.city_url}/city/internal/node/{self.node_id}/heartbeat",
|
||||
json=payload
|
||||
)
|
||||
|
||||
@@ -170,7 +170,7 @@ class NodeGuardian:
|
||||
"""Тригернути self-healing через API"""
|
||||
try:
|
||||
response = await self.client.post(
|
||||
f"{self.city_url}/internal/node/{self.node_id}/self-healing/trigger"
|
||||
f"{self.city_url}/city/internal/node/{self.node_id}/self-healing/trigger"
|
||||
)
|
||||
|
||||
if response.status_code == 200:
|
||||
|
||||
Reference in New Issue
Block a user