Skip to main content

Overview

The bigdata_seed_monitor tool replays the scheduled runs a search monitor would have made over a past period, without activating it. A seed includes the novelty check, so it shows what would have alerted. The tool starts the seed and returns a seed_id straight away. Read the results with bigdata_get_monitor_runs.

When to Use

Seed Monitor is ideal for:
  • Backtesting: Replaying the schedule over a past period to see what the monitor would have caught
  • Checking novelty: Seeing which events would have alerted and which would have been rejected as already seen
For a quick look at what a monitor finds on recent news, use bigdata_preview_monitor.

How It Works

  1. Check the monitor’s delivery with bigdata_get_monitor. A seed emails its result when the monitor has email delivery
  2. Call bigdata_seed_monitor with the monitor id and end_timestamp, and start_timestamp for a longer period
  3. Keep the returned seed_id
  4. Read the results with bigdata_get_monitor_runs, passing seed_id. Poll every 10 to 15 seconds until simulation.phase is completed or failed

Parameters

Important Notes

  • A seed can cover at most 90 runs of the monitor’s schedule. The API’s rejection of the period is returned as the error
  • A seed never turns the monitor on. It emails its result if the monitor already has email delivery set
  • An unknown monitor id returns a not-found error

Data Returned

Practical Tips

Ask about email first

If the monitor has no email delivery, you can ask whether the user wants the result by email, and set delivery with bigdata_edit_monitor first. That also emails the monitor’s alerts once it is on. If the monitor already has email delivery, tell the user the result will be emailed.

Watch the retention warning

If retention_warning is set, tell the user before showing any results that the earliest runs of the period may be missing results, because that news is no longer available to the monitor.