<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Retrieving specific Health Rule Violations via the API in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Retrieving-specific-Health-Rule-Violations-via-the-API/m-p/732899#M8196</link>
    <description>&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 22:08:11 GMT</pubDate>
    <dc:creator>Brian_Wheeldon</dc:creator>
    <dc:date>2019-03-04T22:08:11Z</dc:date>
    <item>
      <title>Retrieving specific Health Rule Violations via the API</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Retrieving-specific-Health-Rule-Violations-via-the-API/m-p/732898#M8195</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I was hoping this would get me the result I was after:&lt;/P&gt;
&lt;P&gt;curl --user me@tenant:secret 'https://saasaddress/controller/rest/applications/&lt;STRONG&gt;applicationid&lt;/STRONG&gt;/problems/healthruleviolations?time-range-type=BEFORE_NOW&amp;amp;duration-in-mins=&lt;STRONG&gt;mins&lt;/STRONG&gt;&amp;amp;&lt;STRONG&gt;name=Health+Rule+Name&lt;/STRONG&gt;'.&lt;/P&gt;
&lt;P&gt;Unfortunately, this gives me all of the violations by all health rules, and not violations by name.&lt;/P&gt;
&lt;P&gt;I supposed there are a few questions I should ask here:&lt;BR /&gt;Is this the right way to go about it / am I probing the right location?&lt;BR /&gt;Can the above accept a value of name, or am I limited to whats listed in the following:&amp;nbsp;&lt;A href="https://docs.appdynamics.com/display/PRO45/Alert+and+Respond+API#AlertandRespondAPI-RetrieveAllHealthRuleViolationsinaBusinessApplication" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO45/Alert+and+Respond+API#AlertandRespondAPI-RetrieveAllHealthRuleViolationsinaBusinessApplication&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also, for reference, is there a schema diagram that shows the relationships with all API functions?&lt;/P&gt;
&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 04:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Retrieving-specific-Health-Rule-Violations-via-the-API/m-p/732898#M8195</guid>
      <dc:creator>Danny_Mitrevski</dc:creator>
      <dc:date>2019-03-04T04:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving specific Health Rule Violations via the API</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Retrieving-specific-Health-Rule-Violations-via-the-API/m-p/732899#M8196</link>
      <description>&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 22:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Retrieving-specific-Health-Rule-Violations-via-the-API/m-p/732899#M8196</guid>
      <dc:creator>Brian_Wheeldon</dc:creator>
      <dc:date>2019-03-04T22:08:11Z</dc:date>
    </item>
  </channel>
</rss>

