Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Java (Java Agent, Installation, JVM, and Controller Installation)

Java Data Collector method getter chain


Java Data Collector method getter chain



I hope this is possible because this would be so awesome for our Application Monitoring.

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:




and this worked.


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:



In both cases the Data Collector displays: 

[CANNOT EVALUATE: Error getting data from specified method parameter]

Is there something I'm missing? Or is this simply not possible?


Kind regards

By replying you agree to the Terms and Conditions of the AppDynamics Community.
Java Data Collector method getter chain



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.


Is there any way you can change the application code to programatically collect the data you need using the java agent API?


Warm regards,


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

Hi @Peter.Holditch,


I was afraid that would be the case, so I left this matter be.

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.


Kind regards