Skip to main content
POST
/
observability
/
v1
/
metric-failure-mode-insights
/
categories
/
{category_slug}
/
fix-metric
/
Add an accumulating failure category's example calls to Labs
curl --request POST \
  --url https://api.cekura.ai/observability/v1/metric-failure-mode-insights/categories/{category_slug}/fix-metric/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '
{
  "failure_mode_index": 1,
  "feedback": "<string>",
  "expected_value": "<unknown>"
}
'
{
  "failure_mode_index": 1,
  "feedback": "<string>",
  "expected_value": "<unknown>"
}

Authorizations

X-CEKURA-API-KEY
string
header
required

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

Path Parameters

category_slug
string
required
Pattern: ^[^/]+$

Body

Request body for POST /metric-failure-mode-insights/{id}/fix_metric/.

Samples a few of one failure mode's example calls and adds them to Labs for the insight's metric, carrying the user's feedback as the note and expected_value as the corrected label.

failure_mode_index
integer
required

Index into the insight's failure_modes list to act on.

Required range: x >= 0
feedback
string
required

Human note attached to each sampled call's metric review in Labs.

expected_value
any | null

Corrected label to record for each sampled call in Labs: true/false for binary metrics, a 0-5 score for ratings, a number for numeric metrics, or null for N/A. Defaults to a passing value when omitted.

Response

200 - application/json

Request body for POST /metric-failure-mode-insights/{id}/fix_metric/.

Samples a few of one failure mode's example calls and adds them to Labs for the insight's metric, carrying the user's feedback as the note and expected_value as the corrected label.

failure_mode_index
integer
required

Index into the insight's failure_modes list to act on.

Required range: x >= 0
feedback
string
required

Human note attached to each sampled call's metric review in Labs.

expected_value
any | null

Corrected label to record for each sampled call in Labs: true/false for binary metrics, a 0-5 score for ratings, a number for numeric metrics, or null for N/A. Defaults to a passing value when omitted.