Skip to main content
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"
  }
}
name
string
required
Unique AI insight name (e.g., insight-inc-20260319-001)
namespace
string
default:"default"
Kubernetes namespace

Response Fields

FieldDescription
analysisAI-generated root cause analysis text
confidenceConfidence score from 0.0 to 1.0
recommendationsHuman-readable suggestions
suggestedActionsConcrete actions with type and parameters
logAnalysisStructured findings from pod log analysis
metricsContextPrometheus metric data correlated with the incident
sourceCodeContextRelevant source code snippets from the app repository
gitOpsContextHelm/ArgoCD/Flux status at time of analysis
cascadeAnalysisCross-service cascade failure analysis
blastRadiusPredictionPredicted impact of suggested remediation actions
{
  "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"
  }
}

Authorizations

Authorization
string
header
required

Bearer token issued by the operator. Format: Authorization: Bearer <token>.

Path Parameters

name
string
required

Unique AI insight name.

Example:

"insight-inc-20260319-001"

Query Parameters

namespace
string
default:default

Kubernetes namespace.

Response

AI insight details

apiVersion
string
Example:

"v1"

kind
string
Example:

"AIInsight"

resourceMeta
object
spec
object
status
object