Infrastructure (Server, Network, Database)

cancel
Showing results for 
Search instead for 
Did you mean: 

Use API to create Health Rules and Policy

SOLVED
Producer

Use API to create Health Rules and Policy

i want to create health rules and policy using API for my monitoring checks . Can you please provide me specific link for documenation of same.

 

Any sample script would be helpfull

Use API to create Health Rules and Policy
2 REPLIES 2
Highlighted
AppDynamics Team

Re: Use API to create Health Rules and Policy

Importing and Exporting Health Rules and Policies are describe with examples in the Configuration Import and Export API section of the docs.

 

Export Health Rules from an Application

Import Health Rules into an Application

Export Policies

Import Policies

When you want to create health rules and policies using the API, you will typically start with an existing rule or policy, export it, modify it, then import it back into the same or different application or Controller. When you import a health rule or policy, you need to be careful that the assets it refers to (Metrics, Actions, etc.) exist in the target application or Controller.

 

Regards,

Brian Wheeldon

 

 

 

Brian Wheeldon, Solution Engineer, NYC







Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Architect

Re: Use API to create Health Rules and Policy

Update: my reply was posted this morning, not sure what happened when i tried to do it yesterday,

 

You can use the following link to for API to export the health rules

https://docs.appdynamics.com/display/PRO43/Configuration+Import+and+Export+API#ConfigurationImportan...

 

here is the link for import:

https://docs.appdynamics.com/display/PRO43/Configuration+Import+and+Export+API#ConfigurationImportan...

 

You will need to export one health check rule in order to understand and once you are comfortable updating the xml, you can update and import into the controller.