Splunk AppDynamics

How can I use an API to create Health Rules and Policies

CommunityUser
Splunk Employee
Splunk Employee

Hello,

I want to create health rules and policies using API for my monitoring checks. Can you please provide me a specific link for documentation>

Any sample script would also be helpful.

^ Edited by @Ryan.Paredez to improve the title and readability of the post. 

Labels (1)
2 Solutions

Brian_Wheeldon
Contributor

Hi,

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

Here are additional links

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

^ Edited by @Ryan.Paredez for formatting. 

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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.

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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.

0 Karma

Brian_Wheeldon
Contributor

Hi,

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

Here are additional links

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

^ Edited by @Ryan.Paredez for formatting. 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...