<?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: Lamda Expression in .NET Getter Chain in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Lamda-Expression-in-NET-Getter-Chain/m-p/733971#M8742</link>
    <description>&lt;P&gt;Hello Harrison,&lt;/P&gt;&lt;P&gt;Thank you for reaching out to the community.&lt;/P&gt;&lt;P&gt;We do not support for Linq query with lambda expression in data collector/information point getter chain.&lt;/P&gt;&lt;P&gt;Apologies for the inconvenience. The workaround is to add the getter method that returns the evaluated value,&lt;BR /&gt;and add data collector to this method.&amp;nbsp;Please consult the following steps and the reference. (For example, it is assumed that getActionType and getResultMessage are implemented.)&lt;/P&gt;&lt;P&gt;Steps:&lt;BR /&gt;1. Go Configuration &amp;gt; Instrumentation in your SaaS controller web page.&lt;BR /&gt;2. Click the Data Collector tab and click the Add button below the Method Invocation Data Collectors panel.&lt;BR /&gt;3. Input the following fields and click the save button.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;Example&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Name: MyDataCollector&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Class: with a class name that equals MyApplication.mynamespace.myclass&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Method Name: Mymethod&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Match Conditions:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Collect Data From : Method Parameter @index:0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Operation on Method Parameter: Use Getter Chain: getActionType()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Equals: Settle&lt;/P&gt;&lt;P&gt;&amp;nbsp;4. Click the Add button below the Specify the Data to Collect from this Method Invocation panel.&lt;BR /&gt;&amp;nbsp;5. Input the following fields and click the save button.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;Example&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Display Name: MyDataCollector&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Collect Data From : Method Parameter @index:0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Operation on Method Parameter: Use Getter Chain: getResultMessage()&lt;BR /&gt;&lt;BR /&gt;6. Click the save button.&lt;BR /&gt;7. You must wait one minute and restart the CLR for the changes to take effect.&lt;/P&gt;&lt;P&gt;Reference: &lt;A href="https://docs.appdynamics.com/display/PRO45/Data+Collectors" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO45/Data+Collectors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Yusuke&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2020 05:32:47 GMT</pubDate>
    <dc:creator>Yusuke_Miyahara</dc:creator>
    <dc:date>2020-02-20T05:32:47Z</dc:date>
    <item>
      <title>Lamda Expression in .NET Getter Chain</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Lamda-Expression-in-NET-Getter-Chain/m-p/733970#M8741</link>
      <description>&lt;P&gt;Is it possible to use a lamda expression in a .NET getter chain for a data collector? I have a List of objects that I would like to call Find on and pass a lamda to get the one I need.&lt;/P&gt;

&lt;P&gt;Basically I want to call this:&lt;/P&gt;
&lt;PRE&gt;Actions.Find(x =&amp;gt; x.ActionType == ActionType.Settle).ResultMessage&lt;/PRE&gt;
&lt;P&gt;But I'm not sure what the syntax for the getter chain should be in this case (or if it's even possible). Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:15:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Lamda-Expression-in-NET-Getter-Chain/m-p/733970#M8741</guid>
      <dc:creator>Harrison_Clark</dc:creator>
      <dc:date>2019-05-21T13:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lamda Expression in .NET Getter Chain</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Lamda-Expression-in-NET-Getter-Chain/m-p/733971#M8742</link>
      <description>&lt;P&gt;Hello Harrison,&lt;/P&gt;&lt;P&gt;Thank you for reaching out to the community.&lt;/P&gt;&lt;P&gt;We do not support for Linq query with lambda expression in data collector/information point getter chain.&lt;/P&gt;&lt;P&gt;Apologies for the inconvenience. The workaround is to add the getter method that returns the evaluated value,&lt;BR /&gt;and add data collector to this method.&amp;nbsp;Please consult the following steps and the reference. (For example, it is assumed that getActionType and getResultMessage are implemented.)&lt;/P&gt;&lt;P&gt;Steps:&lt;BR /&gt;1. Go Configuration &amp;gt; Instrumentation in your SaaS controller web page.&lt;BR /&gt;2. Click the Data Collector tab and click the Add button below the Method Invocation Data Collectors panel.&lt;BR /&gt;3. Input the following fields and click the save button.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;Example&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Name: MyDataCollector&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Class: with a class name that equals MyApplication.mynamespace.myclass&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Method Name: Mymethod&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Match Conditions:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Collect Data From : Method Parameter @index:0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Operation on Method Parameter: Use Getter Chain: getActionType()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Equals: Settle&lt;/P&gt;&lt;P&gt;&amp;nbsp;4. Click the Add button below the Specify the Data to Collect from this Method Invocation panel.&lt;BR /&gt;&amp;nbsp;5. Input the following fields and click the save button.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;Example&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Display Name: MyDataCollector&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Collect Data From : Method Parameter @index:0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Operation on Method Parameter: Use Getter Chain: getResultMessage()&lt;BR /&gt;&lt;BR /&gt;6. Click the save button.&lt;BR /&gt;7. You must wait one minute and restart the CLR for the changes to take effect.&lt;/P&gt;&lt;P&gt;Reference: &lt;A href="https://docs.appdynamics.com/display/PRO45/Data+Collectors" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO45/Data+Collectors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Yusuke&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 05:32:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Lamda-Expression-in-NET-Getter-Chain/m-p/733971#M8742</guid>
      <dc:creator>Yusuke_Miyahara</dc:creator>
      <dc:date>2020-02-20T05:32:47Z</dc:date>
    </item>
  </channel>
</rss>

