analyze_pod_logs_hybrid
Analyzes Kubernetes pod logs with intelligent strategy selection based on context and urgency, providing insights for troubleshooting, investigation, or monitoring.
Instructions
Hybrid log analyzer with intelligent strategy selection and caching.
Automatically selects best analysis approach based on context and urgency.
Args:
namespace: Kubernetes namespace.
pod_name: Pod name to analyze.
container_name: Specific container (if multiple).
strategy: "auto" (default), "smart_summary", "streaming", or "hybrid".
request_type: "investigation", "troubleshooting", or "monitoring".
urgency: "low", "medium" (default), "high", or "critical".
use_cache: Use intelligent caching (default: True).
custom_params: Custom parameters for strategies.
Returns:
Dict[str, Any]: Keys: strategy_used, analysis_results, supplementary_insights,
performance_metrics, recommendations, cache_info.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"namespace": "<namespace>",
"pod_name": "<pod_name>"
},
"name": "analyze_pod_logs_hybrid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | ||
| pod_name | Yes | ||
| container_name | No | ||
| strategy | No | auto | |
| request_type | No | investigation | |
| urgency | No | medium | |
| use_cache | No | ||
| custom_params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |