> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fraudeg.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Monitor events

> monitor.triggered and monitor.recovered: when they arrive, what they carry, and how to subscribe

A monitor watches a number in your scored traffic (how many transactions arrive, what share
is approved, what share is blocked) and notifies you when that number leaves its normal range and when it
comes back. Monitors are created and tuned in the dashboard; the webhook is the only part of them
that reaches your backend.

It travels over the [common channel](https://docs.fraudeg.com/en/webhooks.md): the same headers, the same signature, the same secret, and
the same retries. This page covers only what changes.

## The events

| Event | When |
| - | - |
| `monitor.triggered` | A monitor left its normal range |
| `monitor.recovered` | That monitor returned to its range, or the notification was closed for another reason (see `reason`) |

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:

1. **An endpoint subscribed to the events.** In the dashboard, Config › Webhooks: create or edit
   the endpoint and select `monitor.triggered` and `monitor.recovered`. Whoever configures it needs
   `WEBHOOKS_MANAGE` and, in addition, `MONITORS_VIEW`: a webhook only delivers what that person
   can see on screen.
2. **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.recovered` for a notification that already went out does arrive.

The two monitors Fraudeg creates with your company (`origin: "FRAUDEG"`) come with all
channels turned on. Their values, their channels, and whether they are paused are up to you.

## The payload

```json theme={null}
{
  "event_id": "6f1c2a8e-4b0d-5f6e-9a3b-2c7d1e0f4a5b",
  "event": "monitor.triggered",
  "occurred_at": "2026-08-10T20:05:12Z",
  "data": {
    "monitor_id": "3d6f0a12-8c4e-4b7a-9e21-5f0c8b7d2e41",
    "monitor_name": "Containment",
    "origin": "FRAUDEG",
    "metric": "CONTAINMENT_RATE",
    "condition": "BAND",
    "transition": "TRIGGERED",
    "operating_mode": "COMPARISON",
    "period": "HOUR",
    "hour": "2026-08-10T14:00:00-05:00",
    "timezone": "America/Bogota",
    "value": 9.4,
    "low": 0.8,
    "high": 5.2,
    "volume": 812,
    "estimate": true,
    "source_approval_rate": 96.1
  }
}
```

`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.

| Field | Type | What it is |
| - | - | - |
| `monitor_id` | string | Monitor id |
| `monitor_name` | string | The name it has in the dashboard |
| `origin` | string | `FRAUDEG` (one of the ones Fraudeg creates with your company) or `CLIENT` (one your team created) |
| `metric` | string | Which number it watches. See below |
| `condition` | string | When that number is out of range. See below |
| `transition` | string | `TRIGGERED` or `RECOVERED`; matches `event` |
| `reason` | string | Only on `monitor.recovered`: why it was closed. See below |
| `operating_mode` | string | Your company's mode when it was judged: `LIVE` (operating) or `COMPARISON` (comparison) |
| `period` | string | `HOUR`: one closed local hour of real-time traffic. `DAY`: one local day that a batch file brought |
| `hour` | string | Start of the judged hour, ISO 8601 with your time zone's offset. With `DAY`, local midnight of that day |
| `timezone` | string | Your company's time zone (IANA) |
| `value` | number | The number for that hour, or that day |
| `low`, `high` | number | The normal range. The side the condition does not have is missing |
| `volume` | integer | How many transactions it read |
| `estimate` | boolean | `true` in comparison mode when the number comes from Fraudeg's decisions: it is what Fraudeg would have done, not what happened |
| `source_approval_rate` | number | What share your own system approved in that same hour (or day), when your transactions say so |

`occurred_at` is in UTC (`Z`); `hour` is in your company's local time, with its offset.

### `metric`

| Value | What it watches |
| - | - |
| `VOLUME` | How many transactions were scored |
| `APPROVAL_RATE` | Percentage that Fraudeg did not block, hold, or send to additional verification |
| `BLOCK_RATE` | Percentage blocked (`BLOCK`) |
| `HOLD_RATE` | Percentage held or with additional verification (`HOLD` and `STEP_UP_AUTH`) |
| `CONTAINMENT_RATE` | Percentage contained: `BLOCK`, `HOLD`, or `STEP_UP_AUTH` |
| `OPEN_ALERTS_WITHOUT_CASE` | Open alerts that do not have a case yet |

Rates go from 0 to 100 and are calculated over Fraudeg's [decisions](https://docs.fraudeg.com/en/conceptos/decisiones.md).

### `condition`

| Value | Out of range when the number… |
| - | - |
| `FIXED` | goes past a value you choose |
| `CHANGE` | rises or falls against the same hour last week |
| `BAND` | goes outside what usually happens at that same hour |

### `reason`

| Value | Why the `monitor.recovered` arrived |
| - | - |
| `NORMAL` | The number returned to its range |
| `OPERATING_MODE` | Your company changed its operating mode |
| `DEFINITION_CHANGED` | Someone changed the monitor's metric or condition |
| `DELETED` | The monitor was deleted |

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](https://docs.fraudeg.com/en/webhooks/firma-y-entrega.md): 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 same `event_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 `transition` and `occurred_at`.
* **There is no API read.** Your API key does not read monitors; each one's history is in the
  dashboard.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.