Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 02-22-2017 03:37 PM - edited on 12-22-2018 12:07 PM by Nina.Wolinsky
Use this split rule if you have an arraylist <String>, and you need to fetch the value of pincode in the data collector so that anyone can use that data collector in analytics to retrieve results.
java.util.ArrayList<String> customerList = new java.util.ArrayList<String>(); customerList.add("name=foo"); customerList.add("pincode=67869"); customerList.add("country=null"); customerList.add("state=LA");
You create a Java split rule and it's formatted as follows:
getcustomerList.get(1).split("=")[1];
However, you try this split rule in the data collector and it doesn't work.
In your Java split rule, format it as follows:
getcustomerList.get(int/1).split(=).[1]
See also: Using Getter Chains - Java
Just a small clarification, should this be "int/1" instead of "int/0" in below line?
getcustomerList.get(int/0).split(=).[1]
@Rajendra.Nautiyal? Correction needed?
yes please correct :
getcustomerList.get(int/0).split(=).[1]
to
getcustomerList.get(int/1).split(=).[1]
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form