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