- Catch out-of-range measurements before they propagate into reports
- Flag missing or implausible values during data ingestion
- Validate that calculated batch outputs stay within expected bounds
- Encode methodology guardrails that your team would otherwise check by eye
Key concepts
Rule
A rule is a single named expression evaluated against either incoming event data or model calculation results. Rules belong to a project and are managed in Project Settings → Data Rules.What a rule runs on
Each rule runs on one kind of data, shown in the rules list under Runs on:
When a rule’s condition matches, Mangrove raises an alert on the affected data point or batch calculation. It does not block event creation, data point updates, or batch generation. Alerts are surfaced for review; users can dismiss them with a reason without changing the underlying data.
Rule expression
The expression is the condition that triggers the rule. Expressions are written in a domain-specific language similar to SQL — for example:Effective period
Every rule has an Effective from date and an optional Effective to date. The rule evaluates records whose date falls within this range — anything outside it is left alone.- Set Effective to to a date when the rule should stop applying (for example, when a methodology version retires).
- Leave Effective to blank to mean Ongoing — the rule keeps running on new data indefinitely.
Alert
When a rule’s expression matches a record within the effective period, Mangrove creates an alert. Alerts surface in three places:- Event drawer — alerts appear on the affected event with a link back to the rule
- Batch detail — batches with rule alerts show them on the batch page
- Reports — alerts on records included in a report are propagated to that report
Lifecycle
To stop a rule from running on new data, set or shorten its Effective to date. The rule and its history stay in the project, and its alerts are re-evaluated against the new period, which resets any dismissals, so plan on re-triaging afterwards. To remove a rule entirely, delete it, which also removes all of its evaluations and alerts.API access
Reading rules and their results over the Mangrove API requires your API token to have Data Rules read permission. Changing anything, including creating a rule, editing it, deleting it, and dismissing its alerts, requires write permission. A token without them gets a403 Forbidden back. To grant them, open Settings → API Tokens, edit the token, and tick Data Rules in the permissions list.