Update metrics and history commands to use /jobs endpoint instead of /dashboard
Some checks failed
CLI Tests / test-cli (push) Failing after 10s
Cross-Node Transaction Testing / transaction-test (push) Successful in 2s
Deploy to Testnet / deploy-testnet (push) Successful in 1m7s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Successful in 2s
Security Scanning / security-scan (push) Successful in 16s

- Change endpoint from /dashboard to /jobs in metrics command job metrics section
- Change endpoint from /dashboard to /jobs in history command
This commit is contained in:
aitbc
2026-05-08 13:23:32 +02:00
parent 5502d2533a
commit 7d357e40b4

View File

@@ -135,7 +135,7 @@ def metrics(ctx, period: str, export_path: Optional[str]):
# Job metrics
try:
resp = client.get(
f"{config.monitoring_service_url}/dashboard",
f"{config.monitoring_service_url}/jobs",
headers={"X-Api-Key": config.api_key or ""}
)
if resp.status_code == 200:
@@ -279,7 +279,7 @@ def history(ctx, period: str):
with httpx.Client(timeout=10) as client:
try:
resp = client.get(
f"{config.monitoring_service_url}/dashboard",
f"{config.monitoring_service_url}/jobs",
headers={"X-Api-Key": config.api_key or ""}
)
if resp.status_code == 200: