<?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: Java Data Collector method getter chain in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-Data-Collector-method-getter-chain/m-p/718128#M825</link>
    <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm afraid it is only possible to pass constant parameter values to methods in getter chains so there is no way to achieve what you want by this route.&lt;/P&gt;

&lt;P&gt;Is there any way you can change the application code to programatically collect the data you need using the &lt;A href="https://docs.appdynamics.com/display/PRO45/Java+Agent+API+User+Guide#JavaAgentAPIUserGuide-AddingDatatoSnapshotorAnalytics" target="_self" rel="nofollow noopener noreferrer"&gt;java agent API&lt;/A&gt;?&lt;/P&gt;

&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 17:01:31 GMT</pubDate>
    <dc:creator>Peter_Holditch</dc:creator>
    <dc:date>2019-10-08T17:01:31Z</dc:date>
    <item>
      <title>Java Data Collector method getter chain</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-Data-Collector-method-getter-chain/m-p/718127#M824</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I hope this is possible because this would be so awesome for our Application Monitoring.&lt;/P&gt;&lt;P&gt;So our API returns an object that contains a List of that I need the last element. So I created a getter chain like this for testing of the first element:&lt;/P&gt;&lt;PRE&gt;getBody().getRoute().get(int/0).getLength()&lt;/PRE&gt;&lt;P&gt;and this worked.&lt;/P&gt;&lt;P&gt;My problem is that I can't seem to get the correct syntax right on how to get the last element. My last tries were the following:&lt;/P&gt;&lt;PRE&gt;getBody().getRoute().get(int/ReturnValue.getBody().getRoute().size()-1).getLength()

getBody().getRoute().get(int/this.getBody().getRoute().size()-1).getLength()&lt;/PRE&gt;&lt;P&gt;In both cases the Data Collector displays:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[CANNOT EVALUATE: Error getting data from specified method parameter]&lt;/PRE&gt;&lt;P&gt;Is there something I'm missing? Or is this simply not possible?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 15:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-Data-Collector-method-getter-chain/m-p/718127#M824</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-09-19T15:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Java Data Collector method getter chain</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-Data-Collector-method-getter-chain/m-p/718128#M825</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm afraid it is only possible to pass constant parameter values to methods in getter chains so there is no way to achieve what you want by this route.&lt;/P&gt;

&lt;P&gt;Is there any way you can change the application code to programatically collect the data you need using the &lt;A href="https://docs.appdynamics.com/display/PRO45/Java+Agent+API+User+Guide#JavaAgentAPIUserGuide-AddingDatatoSnapshotorAnalytics" target="_self" rel="nofollow noopener noreferrer"&gt;java agent API&lt;/A&gt;?&lt;/P&gt;

&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 17:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-Data-Collector-method-getter-chain/m-p/718128#M825</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2019-10-08T17:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Java Data Collector method getter chain</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-Data-Collector-method-getter-chain/m-p/718129#M826</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/1797"&gt;@Peter.Holditch&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I was afraid that would be the case, so I left this matter be.&lt;/P&gt;&lt;P&gt;Fortunatelly I have acces to the code and can make adjustments. But it would have been nice if AppDynamics was able to do what I tried to do.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:58:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-Data-Collector-method-getter-chain/m-p/718129#M826</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-10-09T09:58:44Z</dc:date>
    </item>
  </channel>
</rss>

