Hi, I’m making a sensor to detect rules with certain tags. I don’t want to use the API, because I would have to change the authentication parameters every time someone tries this plugin.
I am doing it this way:
As you can see what I do is take all the active rules with the sensor context.
And I use the RuleFinder so that it searches for the rule by the key and can assign it to a rule. With that I could already take his name, his tags etc.
But the problem is in the RuleFinder, which says that it is null.
I have tried without the Autowired annotation, with the annotation, putting @Component in this class. And it doesn’t work for me either.
When i do a scan it fails:
On line 39, where is the rf.
Please help!!!
Thanks in advance.