Agent Trends
GET /api/agent-status/trends
All agents’ performance trends for the given time period.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Trend analysis period in days
Trend analysis period in days
Responses
Section titled “ Responses ”Successful Response
object
object
Type-safe agent trends result structure.
Returned by get_agent_trends() with full trend analysis data.
Fields: agent_name: Name of analyzed agent time_period_days: Analysis time period current_metrics: Current metrics snapshot trends: Dict of trend indicators recommendations: List of optimization suggestions
object
Type-safe agent metrics data structure.
Provides full type safety for agent performance metrics throughout the MetricsManager service. All fields are optional (total=False) to support partial updates while maintaining type safety.
Fields: total_requests: Count of all requests processed avg_response_time: Average response time in seconds success_rate: Ratio of successful requests (0.0-1.0) last_used: ISO timestamp of most recent request (nullable) performance_score: Weighted score (60% success + 40% speed) error_count: Count of failed requests successful_requests: Count of successful requests response_times: Rolling history of response times created_at: ISO timestamp of metrics creation last_updated: ISO timestamp of last metrics update
object
Type-safe trend analysis structure.
Used in get_agent_trends() to provide trend indicators.
Fields: response_time_trend: Trend indicator for response time success_rate_trend: Trend indicator for success rate usage_trend: Trend indicator for usage
object
Validation Error