Splunk AppDynamics

How can I create health rules using the rest api?

CommunityUser
Splunk Employee
Splunk Employee

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

Labels (1)
0 Karma
1 Solution

Sebastien_Ye
Engager

Hi, 

Now we can add/update health rule using the specified JSON payload following this: https://docs.appdynamics.com/display/PRO21/Health+Rule+API

Sebastien

View solution in original post

Pratik_Maskey
Communicator

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

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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

0 Karma

Sebastien_Ye
Engager

Hi, 

Now we can add/update health rule using the specified JSON payload following this: https://docs.appdynamics.com/display/PRO21/Health+Rule+API

Sebastien

Get Updates on the Splunk Community!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...