How to develop/ best practice that i need to follow while building a managers and can anyone provide sample code
how it interacts with actions?
Solved! Go to Solution.
Managers are an optional scalable way to share code across all Actions. E.g. authentication, and error handling are generic to the integration as a whole, not just the single Action you are writing. If you intend to write only 1 Action you might not need a Manager, but if you write 2+ then a manager is advised.
If you read other integration packs you will see that usage of Managers varies depending on the author, and you will see in larger integrations (e.g. SNOW, Google, Microsoft, AWS) what a good Manager structure looks like for maximum scalability.
I built a custom manager as part of one of my custom integrations. You can see the code here: https://github.com/pilot006/google-secops-unofficial-api-collectors
-mike
Managers are an optional scalable way to share code across all Actions. E.g. authentication, and error handling are generic to the integration as a whole, not just the single Action you are writing. If you intend to write only 1 Action you might not need a Manager, but if you write 2+ then a manager is advised.
If you read other integration packs you will see that usage of Managers varies depending on the author, and you will see in larger integrations (e.g. SNOW, Google, Microsoft, AWS) what a good Manager structure looks like for maximum scalability.