Get All Agent Metrics
GET /api/v1/accountability/metrics
Get performance metrics for all C-suite agents.
Computes metrics from A2A task history for the given time period. Best-effort streams results to BigQuery and syncs to Firestore for real-time dashboard display.
Args: period_days: Number of days to look back. user: The authenticated user context. svc: The agent metrics service (injected).
Returns: Performance summary across all agents.
Authorizations
Parameters
Query Parameters
Number of days to look back
Number of days to look back
Responses
200
Successful Response
Performance summary across all agents for a time period.
Attributes: metrics: List of per-agent performance metrics. period_start: Start of the measurement period. period_end: End of the measurement period.
object
Performance metrics for a single agent over a time period.
Attributes: agent_role: The agent role these metrics describe. total_tasks: Total tasks assigned in the period. completed_tasks: Tasks completed successfully. failed_tasks: Tasks that failed. success_rate: Ratio of completed to total (0.0-1.0). avg_completion_time_ms: Average task completion time in ms. escalation_count: Number of escalations (input-required). quality_gate_pass_rate: Ratio of quality gate passes (0.0-1.0). period_start: Start of the measurement period. period_end: End of the measurement period.
object
422
Validation Error