<?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: How to get custom values reported by Mobile app in metrics api in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-custom-values-reported-by-Mobile-app-in-metrics-api/m-p/182575#M3531</link>
    <description>&lt;P&gt;Hey ajkinetic,&lt;BR /&gt;&lt;BR /&gt;I've set something up in my own environment to hopefully show you a couple of ways you could get these values. Firstly the reported values can only be found within the waterfall analysis for the action unless you configure your environment further.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So firstly to see these values and make sure they are in fact making their way into your environment find your action in a user session and then click the dropdown for it and then go to the waterfall analysis.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_0-1647391603231.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4811iA7FECB4DFC73D7DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_0-1647391603231.png" alt="Fin_Ubels_0-1647391603231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once in the waterfall analysis all reported values should show up here underneath the action timeline.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_1-1647391610085.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4812i42AD5AD255A1CFF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_1-1647391610085.png" alt="Fin_Ubels_1-1647391610085.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if you want these values to be accessible from the user session query feature or through the API you need to define it as an action&amp;nbsp;property or session property.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_3-1647391902043.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4814i7871FE1922F03FE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_3-1647391902043.png" alt="Fin_Ubels_3-1647391902043.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my example above I have a property called Location, in your example you would set the "Name" field to be "My string value" or "My int value" as that is the name you gave your values in your code. The property details like the key are for viewing and getting the values in Dynatrace which you will see below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;After setting the properties generate some new traffic and then you can check that it worked in the user session query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_4-1647392172989.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4815i6FEBE2DD8828C038/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_4-1647392172989.png" alt="Fin_Ubels_4-1647392172989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT usersession.userSessionId, usersession.userId, useraction.name, useraction.stringProperties.location FROM useraction WHERE useraction.stringProperties.location IS NOT NULL&lt;/LI-CODE&gt;&lt;P&gt;The above is an example of the query I used to see my location property being reported.&lt;BR /&gt;&lt;BR /&gt;Hopefully this helps to get your started!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 01:04:56 GMT</pubDate>
    <dc:creator>Fin_Ubels</dc:creator>
    <dc:date>2022-03-16T01:04:56Z</dc:date>
    <item>
      <title>How to get custom values reported by Mobile app in metrics api</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-custom-values-reported-by-Mobile-app-in-metrics-api/m-p/182512#M3530</link>
      <description>&lt;P&gt;I am creating a custom action in my Swift (MOBILE) App as described in the documentation :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN&gt; myAction &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;DTXAction&lt;/SPAN&gt;&lt;SPAN&gt;.enter(withName: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"My action"&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;myAction&lt;/SPAN&gt;&lt;SPAN class=""&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;.reportValue(withName: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"My int value"&lt;/SPAN&gt;&lt;SPAN&gt;, intValue: &lt;/SPAN&gt;&lt;SPAN class=""&gt;1234&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;myAction&lt;/SPAN&gt;&lt;SPAN class=""&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;.reportValue(withName: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"My double value"&lt;/SPAN&gt;&lt;SPAN&gt;, doubleValue: &lt;/SPAN&gt;&lt;SPAN class=""&gt;12.34&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;myAction&lt;/SPAN&gt;&lt;SPAN class=""&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;.reportValue(withName: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"My string value"&lt;/SPAN&gt;&lt;SPAN&gt;, stringValue: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Hello World!"&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;myAction&lt;/SPAN&gt;&lt;SPAN class=""&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;.leave()&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My question is: How do I get the values that have been reported above within Dynatrace, as well as via your API?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I can see the Action called "My action" within the dashboard, and I can get metrics from the action by making it a Key User Action, but I cannot seem to get the values for that action: e.g. "My int value" etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please help&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:34:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-custom-values-reported-by-Mobile-app-in-metrics-api/m-p/182512#M3530</guid>
      <dc:creator>ajkinetic</dc:creator>
      <dc:date>2022-03-16T08:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get custom values reported by Mobile app in metrics api</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-custom-values-reported-by-Mobile-app-in-metrics-api/m-p/182575#M3531</link>
      <description>&lt;P&gt;Hey ajkinetic,&lt;BR /&gt;&lt;BR /&gt;I've set something up in my own environment to hopefully show you a couple of ways you could get these values. Firstly the reported values can only be found within the waterfall analysis for the action unless you configure your environment further.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So firstly to see these values and make sure they are in fact making their way into your environment find your action in a user session and then click the dropdown for it and then go to the waterfall analysis.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_0-1647391603231.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4811iA7FECB4DFC73D7DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_0-1647391603231.png" alt="Fin_Ubels_0-1647391603231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once in the waterfall analysis all reported values should show up here underneath the action timeline.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_1-1647391610085.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4812i42AD5AD255A1CFF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_1-1647391610085.png" alt="Fin_Ubels_1-1647391610085.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if you want these values to be accessible from the user session query feature or through the API you need to define it as an action&amp;nbsp;property or session property.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_3-1647391902043.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4814i7871FE1922F03FE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_3-1647391902043.png" alt="Fin_Ubels_3-1647391902043.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my example above I have a property called Location, in your example you would set the "Name" field to be "My string value" or "My int value" as that is the name you gave your values in your code. The property details like the key are for viewing and getting the values in Dynatrace which you will see below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;After setting the properties generate some new traffic and then you can check that it worked in the user session query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_4-1647392172989.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4815i6FEBE2DD8828C038/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_4-1647392172989.png" alt="Fin_Ubels_4-1647392172989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT usersession.userSessionId, usersession.userId, useraction.name, useraction.stringProperties.location FROM useraction WHERE useraction.stringProperties.location IS NOT NULL&lt;/LI-CODE&gt;&lt;P&gt;The above is an example of the query I used to see my location property being reported.&lt;BR /&gt;&lt;BR /&gt;Hopefully this helps to get your started!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 01:04:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-custom-values-reported-by-Mobile-app-in-metrics-api/m-p/182575#M3531</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2022-03-16T01:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get custom values reported by Mobile app in metrics api</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-custom-values-reported-by-Mobile-app-in-metrics-api/m-p/182605#M3532</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47376"&gt;@Fin_Ubels&lt;/a&gt;&amp;nbsp;thank you, this is what I was looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 09:14:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-to-get-custom-values-reported-by-Mobile-app-in-metrics-api/m-p/182605#M3532</guid>
      <dc:creator>ajkinetic</dc:creator>
      <dc:date>2022-03-16T09:14:04Z</dc:date>
    </item>
  </channel>
</rss>

