observability

Generate a failure-mode insight for one metric

Changed on

Queue a failure-mode audit of one metric's recent failing calls and return the new insight row in pending. Identify the metric with metric_name plus either metric (custom) or predefined_metric. Poll the returned row's status until it reaches succeeded. ⚠ Consumes credits per generated insight — see the pricing endpoint.

post/observability/v1/metric-failure-mode-insights/generate/

Request

  • Base URL
    https://api.cekura.ai
  • URL
    https://api.cekura.ai/observability/v1/metric-failure-mode-insights/generate/
  • Auth
    • API key in header X-CEKURA-API-KEY
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Request body

projectinteger required

Project ID to generate insights for.

metricinteger nullable

Custom Metric ID (omit for predefined metric).

predefined_metricinteger nullable

PredefinedMetric ID (omit for custom metric).

metric_namestring required

Metric display name — must match call_log.evaluation.metrics[].name.

window_daysinteger

Deprecated — audits now always use the last 24 hours.

max_callsinteger nullable

Upper-bound ceiling on failing calls fed to the agent. Omit to audit every failing call in the 24h window up to 500. If the window exceeds the cap a random sample is taken.

Response

projectinteger required

Project ID to generate insights for.

metricinteger nullable

Custom Metric ID (omit for predefined metric).

predefined_metricinteger nullable

PredefinedMetric ID (omit for custom metric).

metric_namestring required

Metric display name — must match call_log.evaluation.metrics[].name.

window_daysinteger

Deprecated — audits now always use the last 24 hours.

max_callsinteger nullable

Upper-bound ceiling on failing calls fed to the agent. Omit to audit every failing call in the 24h window up to 500. If the window exceeds the cap a random sample is taken.

Changes