Skip to content

Test Alert Rule

POST /alerts/{alert_rule_id}/test

Dry-run evaluation, no side effects.

Shares _measure with the sweep, so what this previews is what the evaluator would do — a preview computed by a second code path is a preview of something else.

NameInTypeNotes
alert_rule_idpathstring (uuid)required—
StatusDescriptionBody
200Successful ResponseAlertRuleTestResult
422Validation ErrorHTTPValidationError
Terminal window
curl -X POST https://your-deployment.example.com/alerts/{alert_rule_id}/test \
-H "Authorization: Bearer $COBRE_TOKEN"
FieldTypeNotes
rule_idstring (uuid)required—
metricerror_rate | success_rate | failure_count | run_count | avg_latency_ms | p95_latency_ms | cost | token_total | queue_depth | suspension_age | queued_without_workers | provider_credit_remaining | providers_unreachablerequired—
valuenumber | nullrequired, nullable—
breachedbooleanrequired—
skippedstring | nullrequired, nullable—