StatisticsOptions
Index
Properties
optionalconfig
Configuration instance to use
optionalid
A unique identifier for this statistics instance. This ID is used for persistence to the key value store, ensuring the same statistics can be loaded after script restarts.
If not provided, an auto-incremented ID will be used for backward compatibility. This means statistics may not persist correctly across script restarts if crawler creation order changes.
optionalkeyValueStore
Key value store instance to persist the statistics. If not provided, the default one will be used when capturing starts
optionallog
Parent logger instance, the statistics will create a child logger from this.
optionallogIntervalSecs
Interval in seconds to log the current statistics
optionallogMessage
Message to log with the current statistics
optionalpersistenceOptions
Control how and when to persist the statistics.
optionalsaveErrorSnapshots
Save HTML snapshot (and a screenshot if possible) when an error occurs.
Configuration for the Statistics instance used by the crawler