Get AI Insight
curl --request GET \
--url http://{host}:{port}/{basePath}/aiinsights/{name} \
--header 'Authorization: <api-key>'import requests
url = "http://{host}:{port}/{basePath}/aiinsights/{name}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('http://{host}:{port}/{basePath}/aiinsights/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/aiinsights/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{basePath}/aiinsights/{name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{host}:{port}/{basePath}/aiinsights/{name}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/aiinsights/{name}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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
Get AI Insight
Returns the complete AI analysis for a specific insight, including all enrichment contexts and suggested actions
GET
/
aiinsights
/
{name}
Get AI Insight
curl --request GET \
--url http://{host}:{port}/{basePath}/aiinsights/{name} \
--header 'Authorization: <api-key>'import requests
url = "http://{host}:{port}/{basePath}/aiinsights/{name}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('http://{host}:{port}/{basePath}/aiinsights/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{host}:{port}/{basePath}/aiinsights/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://{host}:{port}/{basePath}/aiinsights/{name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{host}:{port}/{basePath}/aiinsights/{name}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/aiinsights/{name}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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"
}
}
string
required
Unique AI insight name (e.g.,
insight-inc-20260319-001)string
default:"default"
Kubernetes namespace
Response Fields
| Field | Description |
|---|---|
analysis | AI-generated root cause analysis text |
confidence | Confidence score from 0.0 to 1.0 |
recommendations | Human-readable suggestions |
suggestedActions | Concrete actions with type and parameters |
logAnalysis | Structured findings from pod log analysis |
metricsContext | Prometheus metric data correlated with the incident |
sourceCodeContext | Relevant source code snippets from the app repository |
gitOpsContext | Helm/ArgoCD/Flux status at time of analysis |
cascadeAnalysis | Cross-service cascade failure analysis |
blastRadiusPrediction | Predicted 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
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Path Parameters
Unique AI insight name.
Example:
"insight-inc-20260319-001"
Query Parameters
Kubernetes namespace.
⌘I