We have updated our Terms of Service, Code of Conduct, and Addendum.

how to get the current mode the collector is running in

Hey everyone, I am currently working on building a custom collector in CRIBL. I am about 99% of the way there, so that is exciting! I wanted to check if anyone knew how to get the current mode the collector is running in (e.g., Preview, Discovery, or Full Run). I have a unique use case and the collector needs to act differently in these 3 states. I checked the entire "opts" json object and I didn't see anything referencing the mode. I also checked in "jobs" object and didn't see anything there. Could anyone point me in the right direction? If nothing exists, I may just add a simple Boolean setting in the UI of the collector.

Answers