alerts

Create Alert Rule Route

Changed on
post/api/v1/alert-rules

Request

  • Base URL
    https://cp.xenovia.io (the document declares no server; this is the origin it was published from)
  • URL
    https://cp.xenovia.io/api/v1/alert-rules
  • Auth
    none declared

Headers

Authorizationstring nullable

Request body

namestring required
kind'event' | 'metric'
trigger_type'policy_block' | 'policy_redact' | 'policy_escalate' | 'guardrail_escalate' | 'guardrail_block' | 'high_latency' | 'high_intent_score' | 'run_error' | 'fallback_served' | 'fallbacks_exhausted' | 'turn_blocked' | 'turn_escalated' | 'turn_error' | 'compliance_check_failing' nullable
thresholdnumber nullable
severity'info' | 'warning' | 'critical'
cooldown_secondsinteger
metric'turn_error_rate' | 'turn_blocked_rate' | 'escalation_count' | 'turn_count' | 'no_traffic' | 'token_usage' | 'llm_latency_p95_ms' | 'ttft_p95_ms' | 'llm_cost_usd' | 'guardrail_score_avg' | 'guardrail_block_count' | 'policy_block_rate' | 'fallback_rate' | 'provider_failure_rate' nullable
aggregationstring nullable
operator'gt' | 'gte' | 'lt' | 'lte' nullable
window_seconds300 | 900 | 3600 | 86400 nullable
group_by'agent_id' | 'policy_rule' | 'guardrail_name' | 'provider_id' nullable
min_samplesinteger
filtersobject
channelsstring[]
agent_idstring uuid nullable
enabledboolean

Response

Successful Response

idstring uuid required
org_idstring uuid required
agent_idstring uuid nullable required
namestring required
kindstring required
trigger_typestring nullable required
thresholdnumber nullable required
severitystring required
cooldown_secondsinteger required
metricstring nullable required
aggregationstring nullable required
operatorstring nullable required
window_secondsinteger nullable required
group_bystring nullable required
min_samplesinteger required
filtersobject required
channelsstring[] required
enabledboolean required
created_bystring uuid nullable required
created_atstring date-time required
updated_atstring date-time nullable required

Changes

    • info

      added the new fallback_rate enum value to the request property /

    • info

      added the new fallback_served enum value to the request property /

    • info

      added the new fallbacks_exhausted enum value to the request property /

    • info

      added the new provider_failure_rate enum value to the request property /

    • info

      added the new provider_id enum value to the request property /

    • info

      added the new compliance_check_failing enum value to the request property /