Get AI Insight
curl --request GET \
--url http://{host}:{port}/{basePath}/aiinsights/{name} \
--header 'Authorization: <api-key>'{
"apiVersion": "v1",
"kind": "AIInsight",
"resourceMeta": {
"name": "insight-inc-20260319-001",
"namespace": "production",
"creationTimestamp": "2026-03-19T14:31:00Z"
},
"spec": {
"issueRef": "INC-20260319-001",
"provider": "anthropic",
"model": "claude-sonnet-4-20250514"
},
"status": {
"analysis": "The payment-service deployment is experiencing OOMKill events due to a memory leak in the webhook handler...",
"confidence": 0.91,
"recommendations": [
"Increase memory limit from 512Mi to 1Gi",
"Restart pods to reclaim leaked memory",
"Review webhook handler for unclosed response bodies"
],
"suggestedActions": [
{
"name": "Increase memory limit",
"action": "AdjustResources",
"description": "Prevent further OOMKills",
"params": {"memoryLimit": "1Gi"}
}
],
"logAnalysis": "1 Go panic stack trace; 12 critical patterns...",
"metricsContext": "CPU: 0.45 cores (stable), Memory: 498Mi/512Mi (98% - critical), Restarts: 5 in last 30min",
"gitOpsContext": "Helm release 'payment' revision=42 deployed 2h ago",
"cascadeAnalysis": "payment-service(root) -> api-gateway(victim)",
"blastRadiusPrediction": "Low risk: 3 pods, 1 service affected",
"generatedAt": "2026-03-19T14:32:00Z"
}
}
AI Insights
Obter AI Insight
Retorna a análise completa da IA para um insight específico, incluindo todos os contextos de enriquecimento e ações sugeridas
GET
/
aiinsights
/
{name}
Get AI Insight
curl --request GET \
--url http://{host}:{port}/{basePath}/aiinsights/{name} \
--header 'Authorization: <api-key>'{
"apiVersion": "v1",
"kind": "AIInsight",
"resourceMeta": {
"name": "insight-inc-20260319-001",
"namespace": "production",
"creationTimestamp": "2026-03-19T14:31:00Z"
},
"spec": {
"issueRef": "INC-20260319-001",
"provider": "anthropic",
"model": "claude-sonnet-4-20250514"
},
"status": {
"analysis": "The payment-service deployment is experiencing OOMKill events due to a memory leak in the webhook handler...",
"confidence": 0.91,
"recommendations": [
"Increase memory limit from 512Mi to 1Gi",
"Restart pods to reclaim leaked memory",
"Review webhook handler for unclosed response bodies"
],
"suggestedActions": [
{
"name": "Increase memory limit",
"action": "AdjustResources",
"description": "Prevent further OOMKills",
"params": {"memoryLimit": "1Gi"}
}
],
"logAnalysis": "1 Go panic stack trace; 12 critical patterns...",
"metricsContext": "CPU: 0.45 cores (stable), Memory: 498Mi/512Mi (98% - critical), Restarts: 5 in last 30min",
"gitOpsContext": "Helm release 'payment' revision=42 deployed 2h ago",
"cascadeAnalysis": "payment-service(root) -> api-gateway(victim)",
"blastRadiusPrediction": "Low risk: 3 pods, 1 service affected",
"generatedAt": "2026-03-19T14:32:00Z"
}
}
Nome único do AI insight (ex.:
insight-inc-20260319-001)Namespace Kubernetes
Campos da Resposta
| Campo | Descrição |
|---|---|
analysis | Texto de análise de causa raiz gerado pela IA |
confidence | Score de confiança de 0.0 a 1.0 |
recommendations | Sugestões legíveis por humanos |
suggestedActions | Ações concretas com tipo e parâmetros |
logAnalysis | Achados estruturados da análise de logs dos pods |
metricsContext | Dados de métricas Prometheus correlacionados com o incidente |
sourceCodeContext | Trechos relevantes do código-fonte do repositório da aplicação |
gitOpsContext | Status do Helm/ArgoCD/Flux no momento da análise |
cascadeAnalysis | Análise de falha em cascata entre serviços |
blastRadiusPrediction | Impacto previsto das ações de remediação sugeridas |
{
"apiVersion": "v1",
"kind": "AIInsight",
"resourceMeta": {
"name": "insight-inc-20260319-001",
"namespace": "production",
"creationTimestamp": "2026-03-19T14:31:00Z"
},
"spec": {
"issueRef": "INC-20260319-001",
"provider": "anthropic",
"model": "claude-sonnet-4-20250514"
},
"status": {
"analysis": "The payment-service deployment is experiencing OOMKill events due to a memory leak in the webhook handler...",
"confidence": 0.91,
"recommendations": [
"Increase memory limit from 512Mi to 1Gi",
"Restart pods to reclaim leaked memory",
"Review webhook handler for unclosed response bodies"
],
"suggestedActions": [
{
"name": "Increase memory limit",
"action": "AdjustResources",
"description": "Prevent further OOMKills",
"params": {"memoryLimit": "1Gi"}
}
],
"logAnalysis": "1 Go panic stack trace; 12 critical patterns...",
"metricsContext": "CPU: 0.45 cores (stable), Memory: 498Mi/512Mi (98% - critical), Restarts: 5 in last 30min",
"gitOpsContext": "Helm release 'payment' revision=42 deployed 2h ago",
"cascadeAnalysis": "payment-service(root) -> api-gateway(victim)",
"blastRadiusPrediction": "Low risk: 3 pods, 1 service affected",
"generatedAt": "2026-03-19T14:32:00Z"
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": {
"code": 404,
"message": "AI insight not found: insight-inc-20260319-999"
}
}
Autorizações
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Parâmetros de caminho
Unique AI insight name.
Exemplo:
"insight-inc-20260319-001"
Parâmetros de consulta
Kubernetes namespace.
⌘I