Custom Manager for custom integration

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 Solved
0 2 144
1 ACCEPTED 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.

View solution in original post

2 REPLIES 2

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.