Splunk AppDynamics

Retrieving specific Health Rule Violations via the API

Danny_Mitrevski
New Member

Hi All,

I've recently begun getting my head around the AppDynamics API and how it all works. As a small excercise I wanted to produce a list showing all the times a specific health rule has triggered a violation.

I was hoping this would get me the result I was after:

curl --user me@tenant:secret 'https://saasaddress/controller/rest/applications/applicationid/problems/healthruleviolations?time-range-type=BEFORE_NOW&duration-in-mins=mins&name=Health+Rule+Name'.

Unfortunately, this gives me all of the violations by all health rules, and not violations by name.

I supposed there are a few questions I should ask here:
Is this the right way to go about it / am I probing the right location?
Can the above accept a value of name, or am I limited to whats listed in the following: https://docs.appdynamics.com/display/PRO45/Alert+and+Respond+API#AlertandRespondAPI-RetrieveAllHealt...

Also, for reference, is there a schema diagram that shows the relationships with all API functions?

Cheers!

Labels (3)
0 Karma
1 Solution

Brian_Wheeldon
Contributor

Since the API does not provide a "filter by Health Rule Name" option, your best bet is to fetch all the Health Rule violations, then iterate through them and ignore the ones not associated with the target Health Rule.

Regards,

View solution in original post

Brian_Wheeldon
Contributor

Since the API does not provide a "filter by Health Rule Name" option, your best bet is to fetch all the Health Rule violations, then iterate through them and ignore the ones not associated with the target Health Rule.

Regards,

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!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...