The events
A
monitor.recovered only arrives if its monitor.triggered was sent first. Use it to close
what you opened with the first one, and subscribe your endpoint to both.
How to subscribe
You need two things. Without either one, nothing arrives:- An endpoint subscribed to the events. In the dashboard, Config › Webhooks: create or edit
the endpoint and select
monitor.triggeredandmonitor.recovered. Whoever configures it needsWEBHOOKS_MANAGEand, in addition,MONITORS_VIEW: a webhook only delivers what that person can see on screen. - The monitor with the Webhook channel. In the monitor’s definition, “Notifies by” has to
include Webhook. A monitor without that channel, or paused, does not notify by webhook when it leaves
its range; the
monitor.recoveredfor a notification that already went out does arrive.
origin: "FRAUDEG") come with all
channels turned on. Their values, their channels, and whether they are paused are up to you.
The payload
data is a closed list: it carries these fields and no others. A field with no value is not sent:
do not expect null; treat missing and null the same.
occurred_at is in UTC (Z); hour is in your company’s local time, with its offset.
metric
Rates go from 0 to 100 and are calculated over Fraudeg’s decisions.
condition
reason
A
monitor.recovered with a reason other than NORMAL did not judge any number: it does not carry
value, low, high, or source_approval_rate, volume is 0, and hour is the last hour
that was judged.
Delivery
What is common to all events is in Signature and delivery: at least once, a 2xx is success, 10 seconds to respond, bounded retries, and signing with your company’s secret. What is specific to monitors:- Deduplicate by
event_id. A resend of the same notification carries the sameevent_id. It is an opaque id: do not assume its format. - A definition change is another notification. If someone changes the metric or the condition, the
same hour can be notified again with a new
event_id. - Do not assume arrival order. Use
transitionandoccurred_at. - There is no API read. Your API key does not read monitors; each one’s history is in the dashboard.