Overview
Thebigdata_preview_monitor tool runs a search monitor once over one recent window, without activating it. A preview has no novelty check and sends no email. It is the quick check to run before a monitor is turned on.
The tool starts the preview and returns a preview_id straight away. Read the result with bigdata_get_monitor_runs.
When to Use
Preview Monitor is ideal for:- Checking a new monitor: Previewing it after
bigdata_create_monitorand before activating - Checking an edit: Seeing the effect of new queries, entities, or schema after
bigdata_edit_monitor
bigdata_seed_monitor.
How It Works
- Call
bigdata_preview_monitorwith the monitorid - Keep the returned
preview_id - Read the result with
bigdata_get_monitor_runs, passingpreview_id. The call waits up to about 25 seconds and returns as soon as the preview finishes
Parameters
Important Notes
- A preview never turns the monitor on and never sends email
- An unknown monitor
idreturns a not-found error
Data Returned
Practical Tips
Preview before turning a monitor on
When setting up a monitor in chat, review the configuration, preview it, then turn it on. After the preview, show the events and ask whether they are the kind the user wants.Leave novelty out
A preview does not judge novelty, so leavenovel out when showing its events.