Skip to main content

Overview

The bigdata_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: To see what a monitor would have alerted on over a past period, use bigdata_seed_monitor.

How It Works

  1. Call bigdata_preview_monitor with the monitor id
  2. Keep the returned preview_id
  3. Read the result with bigdata_get_monitor_runs, passing preview_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 id returns 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 leave novel out when showing its events.