Skip to main content
GET
/
observability
/
v1
/
metric-failure-mode-insights
/
categories
/
List accumulating failure categories for a metric
curl --request GET \
  --url https://api.cekura.ai/observability/v1/metric-failure-mode-insights/categories/ \
  --header 'X-CEKURA-API-KEY: <api-key>'
import requests

url = "https://api.cekura.ai/observability/v1/metric-failure-mode-insights/categories/"

headers = {"X-CEKURA-API-KEY": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-CEKURA-API-KEY': '<api-key>'}};

fetch('https://api.cekura.ai/observability/v1/metric-failure-mode-insights/categories/', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.cekura.ai/observability/v1/metric-failure-mode-insights/categories/",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "X-CEKURA-API-KEY: <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 := "https://api.cekura.ai/observability/v1/metric-failure-mode-insights/categories/"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-CEKURA-API-KEY", "<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("https://api.cekura.ai/observability/v1/metric-failure-mode-insights/categories/")
  .header("X-CEKURA-API-KEY", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.cekura.ai/observability/v1/metric-failure-mode-insights/categories/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": 123,
  "project": 123,
  "metric": 123,
  "predefined_metric": 123,
  "metric_name": "<string>",
  "is_triage": true,
  "window_start": "2023-11-07T05:31:56Z",
  "window_end": "2023-11-07T05:31:56Z",
  "num_calls_analyzed": 123,
  "total_failures_in_window": 123,
  "headline": "<string>",
  "overall_status_emoji": "<string>",
  "failure_modes": "<unknown>",
  "error_message": "<string>",
  "duration_seconds": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Response

200 - application/json

Insight row exposed to the Observability → Insights UI.

id
integer
read-only
project
integer
read-only
metric
integer | null
read-only
predefined_metric
integer | null
read-only
metric_name
string
read-only
is_triage
boolean
read-only

Derived live from the metric's current triage_enabled + rubric membership (not persisted) — the FE renders the triage section only when this is true.

window_start
string<date-time>
read-only
window_end
string<date-time>
read-only
num_calls_analyzed
integer
read-only
total_failures_in_window
integer
read-only
status
enum<string>
read-only
  • pending - Pending
  • running - Running
  • succeeded - Succeeded
  • failed - Failed
  • skipped_no_failures - Skipped No Failures
Available options:
pending,
running,
succeeded,
failed,
skipped_no_failures
headline
string
read-only
overall_status_emoji
string
read-only
failure_modes
any
error_message
string
read-only
duration_seconds
number<double> | null
read-only
created_at
string<date-time>
read-only
updated_at
string<date-time>
read-only