Overview
Thebigdata_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
bigdata_preview_monitor.
How It Works
- Check the monitor’s
deliverywithbigdata_get_monitor. A seed emails its result when the monitor has email delivery - Call
bigdata_seed_monitorwith the monitoridandend_timestamp, andstart_timestampfor a longer period - Keep the returned
seed_id - Read the results with
bigdata_get_monitor_runs, passingseed_id. Poll every 10 to 15 seconds untilsimulation.phaseiscompletedorfailed
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
idreturns 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 setdelivery 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
Ifretention_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.