Skip to main content
PATCH
Update Alert Rule

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Path Parameters

id
string
required

Alert rule ID

Body

application/json

Change an alert rule; omitted fields keep their value.

name
string
Maximum string length: 100
agentId
string | null

Only this agent's calls; null for all agents

metric
enum<string>

What to watch. See Alerts.

Available options:
call_failure_rate,
evaluation_fail_rate,
negative_sentiment_rate,
tool_error_rate,
webhook_failure_rate,
call_count
comparator
enum<string>
default:above
Available options:
above,
below
threshold
number

Percent (0-100) for rates; a number of calls for call_count

windowMinutes
enum<integer>
default:60
Available options:
15,
60,
240,
1440
minCalls
integer
default:10

Rates are only judged with at least this many calls in the window

Required range: x >= 1
webhookUrl
string<uri> | null

https endpoint for JSON notifications (signed when you have a signing secret)

slackWebhookUrl
string<uri> | null

Slack incoming webhook URL (https://hooks.slack.com/...)

enabled
boolean
default:true

Response

Updated

data
object