Get investigation report
curl --request GET \
--url http://localhost:8080/api/v1/investigations/{investigation}/report \
--header 'X-OpenCluster-Organization: <x-opencluster-organization>' \
--cookie __Host-oc_session=import requests
url = "http://localhost:8080/api/v1/investigations/{investigation}/report"
headers = {
"cookie": "__Host-oc_session=",
"X-OpenCluster-Organization": "<x-opencluster-organization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
cookie: '__Host-oc_session=',
'X-OpenCluster-Organization': '<x-opencluster-organization>'
}
};
fetch('http://localhost:8080/api/v1/investigations/{investigation}/report', 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 => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/investigations/{investigation}/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Host-oc_session=",
CURLOPT_HTTPHEADER => [
"X-OpenCluster-Organization: <x-opencluster-organization>"
],
]);
$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://localhost:8080/api/v1/investigations/{investigation}/report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Host-oc_session=")
req.Header.Add("X-OpenCluster-Organization", "<x-opencluster-organization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/api/v1/investigations/{investigation}/report")
.header("cookie", "__Host-oc_session=")
.header("X-OpenCluster-Organization", "<x-opencluster-organization>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/investigations/{investigation}/report")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Host-oc_session='
request["X-OpenCluster-Organization"] = '<x-opencluster-organization>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"subject": "<string>",
"windowFrom": "2023-11-07T05:31:56Z",
"windowUntil": "2023-11-07T05:31:56Z",
"impact": {
"status": "known",
"currentState": "<string>",
"affectedServices": [
"<string>"
],
"affectedUsers": [
"<string>"
],
"summary": "<string>",
"runRefs": [
2
]
},
"findings": [
{
"id": "<string>",
"statement": "<string>",
"kind": "cause",
"confidence": "confirmed",
"mechanism": "<string>",
"runRefs": [
2
]
}
],
"hypotheses": [
{
"id": "<string>",
"statement": "<string>",
"status": "exploring",
"test": "<string>",
"runRefs": [
2
]
}
],
"actions": [
{
"title": "<string>",
"type": "mitigate",
"rationale": "<string>",
"risk": "low",
"reversible": true,
"requiresApproval": true,
"verification": "<string>",
"runRefs": [
2
]
}
],
"limitations": [
{
"type": "missing_telemetry",
"statement": "<string>",
"runRefs": [
2
]
}
],
"humanConfirmationRequired": true,
"spend": {
"inputTokens": 1,
"outputTokens": 1,
"microCents": 1
},
"createdAt": "2023-11-07T05:31:56Z",
"question": "<string>",
"incidentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conclusionStatus": "verified_cause",
"summary": "<string>",
"stoppedBy": "spend",
"error": "<string>",
"createdBy": "<string>",
"concludedAt": "2023-11-07T05:31:56Z"
}{
"error": "the selected Organization is not available to this caller",
"reason": "credential_rejected",
"requires": "<string>"
}Investigations
Get investigation report
GET
/
api
/
v1
/
investigations
/
{investigation}
/
report
Get investigation report
curl --request GET \
--url http://localhost:8080/api/v1/investigations/{investigation}/report \
--header 'X-OpenCluster-Organization: <x-opencluster-organization>' \
--cookie __Host-oc_session=import requests
url = "http://localhost:8080/api/v1/investigations/{investigation}/report"
headers = {
"cookie": "__Host-oc_session=",
"X-OpenCluster-Organization": "<x-opencluster-organization>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
cookie: '__Host-oc_session=',
'X-OpenCluster-Organization': '<x-opencluster-organization>'
}
};
fetch('http://localhost:8080/api/v1/investigations/{investigation}/report', 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 => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/investigations/{investigation}/report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Host-oc_session=",
CURLOPT_HTTPHEADER => [
"X-OpenCluster-Organization: <x-opencluster-organization>"
],
]);
$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://localhost:8080/api/v1/investigations/{investigation}/report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Host-oc_session=")
req.Header.Add("X-OpenCluster-Organization", "<x-opencluster-organization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/api/v1/investigations/{investigation}/report")
.header("cookie", "__Host-oc_session=")
.header("X-OpenCluster-Organization", "<x-opencluster-organization>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/investigations/{investigation}/report")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Host-oc_session='
request["X-OpenCluster-Organization"] = '<x-opencluster-organization>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"subject": "<string>",
"windowFrom": "2023-11-07T05:31:56Z",
"windowUntil": "2023-11-07T05:31:56Z",
"impact": {
"status": "known",
"currentState": "<string>",
"affectedServices": [
"<string>"
],
"affectedUsers": [
"<string>"
],
"summary": "<string>",
"runRefs": [
2
]
},
"findings": [
{
"id": "<string>",
"statement": "<string>",
"kind": "cause",
"confidence": "confirmed",
"mechanism": "<string>",
"runRefs": [
2
]
}
],
"hypotheses": [
{
"id": "<string>",
"statement": "<string>",
"status": "exploring",
"test": "<string>",
"runRefs": [
2
]
}
],
"actions": [
{
"title": "<string>",
"type": "mitigate",
"rationale": "<string>",
"risk": "low",
"reversible": true,
"requiresApproval": true,
"verification": "<string>",
"runRefs": [
2
]
}
],
"limitations": [
{
"type": "missing_telemetry",
"statement": "<string>",
"runRefs": [
2
]
}
],
"humanConfirmationRequired": true,
"spend": {
"inputTokens": 1,
"outputTokens": 1,
"microCents": 1
},
"createdAt": "2023-11-07T05:31:56Z",
"question": "<string>",
"incidentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conclusionStatus": "verified_cause",
"summary": "<string>",
"stoppedBy": "spend",
"error": "<string>",
"createdBy": "<string>",
"concludedAt": "2023-11-07T05:31:56Z"
}{
"error": "the selected Organization is not available to this caller",
"reason": "credential_rejected",
"requires": "<string>"
}Authorizations
Headers
Selects the Organization whose data and membership are authorized.
Required string length:
1 - 63Pattern:
^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$Path Parameters
Response
Investigation.
Available options:
queued, investigating, needs_input, partial, concluded, cancelled, failed Required string length:
1 - 1024Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum string length:
8192Available options:
verified_cause, supported_explanation, inconclusive, answer_only Maximum string length:
32768Available options:
spend, tool_runs, reasoner_turns, wall_clock, stagnation, context Maximum string length:
4096Maximum string length:
256