Splunk AppDynamics

Getter Chain on Data Collector

Henrik_Juul
New Member

Two things!

1)
I've created a Data Collector which collects data from "Method Parameter @index: 1" from the below.
I'm getting an array with the data collected and as I understand it I need to configure a Getter Chain to get single items as results - how do I do this!?

Class:
OpenAPI.Class01.Class02
Method:
final native public IResult`1 CreateCard(
Int32 customerId
, Int32 abc
, UInt32 from
, UInt32 to
, UInt32[] zones
, System.DateTime fromDate
, System.DateTime toDate
, System.String transactionId
)

2)
Is it possible to create a Data Collector which collects both the result and the parameter(s)?

Labels (1)
0 Karma

Gregory_Burkhea
Path Finder

For the second part... 'can you collect both the results and the parameters...'

You can collect multiple values in one data collector.  You can use getters, or return values, etc.  You have have to have a individual entry in the data collector for each one, though. So if you have 2 parameters, 0 and 1, you would have to have 2 entries.

Gregory_Burkhea
Path Finder

Hey,

I don't know if this helps, but we have several data collectors GETting data from lists, not arrays.  It took us awhile to figure out the syntax, but here is an example of a getter chain with a reference to an item in a list, that works...

getBody().getOutput().getCheckout().getLineItems.get(int/0).getRetailPrintOrderDetails.get(int/0).getOrderTotalAmount()

The 'get(int/0)' part is the part in the list.  In the getter above, there are 2.

Hope that helps.

Greg Bukrhea

iamryan
Community Manager
Community Manager
0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...