Dashboards

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create health rules using the rest api?

SOLVED
Highlighted
Adventurer

How can I create health rules using the rest api?

How can I use the rest api to create Health rules and the health rule metrics?

How can I create health rules using the rest api?
2 REPLIES 2
Highlighted
AppDynamics Team

Re: How can I create health rules using the rest api?

Hi Alicia,

 

Health rule cannot be created through REST API, though we can import and export the health rule.

 

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

 

-Thanks



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

Re: How can I create health rules using the rest api?

Hi Pratik,

 

I was able to export and import the health rule using the instructions on the link that you sent below.  Thank you!  I have another question related to Health rules for MQ but I'm not sure if you can answer it here or if I need to post a new question.  I'm trying to set the health rules condition so that if the current queue depth is greater than 10% of the maximum queue depth, an alert is sent out.  I am currently hard coding the value because I don't see the option of specifying the percentage.  I've attached a screen shot for you to view.

 

Thank you,

 

Alicia