docs: update CLI command syntax across workflow documentation
Some checks failed
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
API Endpoint Tests / test-api-endpoints (push) Has been cancelled
Some checks failed
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
API Endpoint Tests / test-api-endpoints (push) Has been cancelled
- Updated marketplace commands: `marketplace --action` → `market` subcommands - Updated wallet commands: direct flags → `wallet` subcommands - Updated AI commands: `ai-submit`, `ai-status` → `ai submit`, `ai status` - Updated blockchain commands: `chain` → `blockchain info` - Standardized command structure across all workflow files - Affected files: MULTI_NODE_MASTER_INDEX.md, TEST_MASTER_INDEX.md, multi-node-blockchain-marketplace
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
from typing import Annotated
|
||||
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
"""
|
||||
Agent Integration and Deployment API Router for Verifiable AI Agent Orchestration
|
||||
Provides REST API endpoints for production deployment and integration management
|
||||
@@ -13,8 +11,6 @@ from fastapi import APIRouter, Depends, HTTPException
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from sqlmodel import Session, select
|
||||
|
||||
from ..deps import require_admin_key
|
||||
@@ -29,6 +25,7 @@ from ..services.agent_integration import (
|
||||
DeploymentStatus,
|
||||
)
|
||||
from ..storage import get_session
|
||||
from ..utils.alerting import alert_dispatcher
|
||||
|
||||
router = APIRouter(prefix="/agents/integration", tags=["Agent Integration"])
|
||||
|
||||
@@ -555,46 +552,18 @@ async def get_production_health(
|
||||
async def get_production_alerts(
|
||||
severity: str | None = None,
|
||||
limit: int = 50,
|
||||
session: Session = Depends(Annotated[Session, Depends(get_session)]),
|
||||
current_user: str = Depends(require_admin_key()),
|
||||
):
|
||||
"""Get production alerts and notifications"""
|
||||
|
||||
try:
|
||||
# TODO: Implement actual alert collection
|
||||
# This would involve:
|
||||
# 1. Querying alert database
|
||||
# 2. Filtering by severity and time
|
||||
# 3. Paginating results
|
||||
|
||||
# For now, return mock alerts
|
||||
alerts = [
|
||||
{
|
||||
"id": "alert_1",
|
||||
"deployment_id": "deploy_123",
|
||||
"severity": "warning",
|
||||
"message": "High CPU usage detected",
|
||||
"timestamp": datetime.utcnow().isoformat(),
|
||||
"resolved": False,
|
||||
},
|
||||
{
|
||||
"id": "alert_2",
|
||||
"deployment_id": "deploy_456",
|
||||
"severity": "critical",
|
||||
"message": "Instance health check failed",
|
||||
"timestamp": datetime.utcnow().isoformat(),
|
||||
"resolved": True,
|
||||
},
|
||||
]
|
||||
|
||||
# Filter by severity if specified
|
||||
if severity:
|
||||
alerts = [alert for alert in alerts if alert["severity"] == severity]
|
||||
|
||||
# Apply limit
|
||||
alerts = alerts[:limit]
|
||||
|
||||
return {"alerts": alerts, "total_count": len(alerts), "severity": severity}
|
||||
alerts = alert_dispatcher.get_recent_alerts(severity=severity, limit=limit)
|
||||
return {
|
||||
"alerts": alerts,
|
||||
"total_count": len(alerts),
|
||||
"severity": severity,
|
||||
"source": "coordinator_metrics",
|
||||
}
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to get production alerts: {e}")
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from typing import Annotated
|
||||
|
||||
"""
|
||||
Enhanced Services Monitoring Dashboard
|
||||
Provides a unified dashboard for all 6 enhanced services
|
||||
@@ -10,17 +8,13 @@ from datetime import datetime
|
||||
from typing import Any
|
||||
|
||||
import httpx
|
||||
from fastapi import APIRouter, Depends, Request
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from sqlalchemy.orm import Session
|
||||
from fastapi import APIRouter
|
||||
import logging
|
||||
|
||||
from ..storage import get_session
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
# Templates would be stored in a templates directory in production
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
|
||||
# Service endpoints configuration
|
||||
SERVICES = {
|
||||
"multimodal": {
|
||||
@@ -69,7 +63,7 @@ SERVICES = {
|
||||
|
||||
|
||||
@router.get("/dashboard", tags=["monitoring"], summary="Enhanced Services Dashboard")
|
||||
async def monitoring_dashboard(request: Request, session: Annotated[Session, Depends(get_session)]) -> dict[str, Any]:
|
||||
async def monitoring_dashboard() -> dict[str, Any]:
|
||||
"""
|
||||
Unified monitoring dashboard for all enhanced services
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user