<?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 Adding static data to a custom app in Dynatrace in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247222#M945</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I've developed a dashboard using a custom NodeJS application to display Dynatrace log data in a table format using DQL. (See screenshots) I want to enhance this dashboard by integrating static data, in the same way that VLOOKUP works in Excel. For example, I want to retrieve the corresponding description for an ID like TestInferface#28_01 to add context to my data. Is there a place in Dynatrace to store this type of static data, given that it needs to be updated daily and accessible from my application ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexisGND_0-1717424437492.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20276i513D063CECD12D76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexisGND_0-1717424437492.png" alt="AlexisGND_0-1717424437492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 14:21:28 GMT</pubDate>
    <dc:creator>AlexisGND</dc:creator>
    <dc:date>2024-06-03T14:21:28Z</dc:date>
    <item>
      <title>Adding static data to a custom app in Dynatrace</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247222#M945</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I've developed a dashboard using a custom NodeJS application to display Dynatrace log data in a table format using DQL. (See screenshots) I want to enhance this dashboard by integrating static data, in the same way that VLOOKUP works in Excel. For example, I want to retrieve the corresponding description for an ID like TestInferface#28_01 to add context to my data. Is there a place in Dynatrace to store this type of static data, given that it needs to be updated daily and accessible from my application ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexisGND_0-1717424437492.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20276i513D063CECD12D76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexisGND_0-1717424437492.png" alt="AlexisGND_0-1717424437492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:21:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247222#M945</guid>
      <dc:creator>AlexisGND</dc:creator>
      <dc:date>2024-06-03T14:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding static data to a custom app in Dynatrace</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247374#M951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/68059"&gt;@AlexisGND&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I don't exactly know what you are waiting for, but you can store data in custom buckets on Grail. Then retrieve that data using DQL inside of your custom app.&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/platform/grail/data-model#creating-new-buckets" target="_blank"&gt;Grail data model - Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cesarsaravia_0-1717531279221.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20318iD12E03BAD972A3FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cesarsaravia_0-1717531279221.png" alt="cesarsaravia_0-1717531279221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 20:02:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247374#M951</guid>
      <dc:creator>cesarsaravia</dc:creator>
      <dc:date>2024-06-04T20:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding static data to a custom app in Dynatrace</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247416#M952</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/30478"&gt;@cesarsaravia&lt;/a&gt;&amp;nbsp;thanks for your reply !&lt;BR /&gt;In fact, I am already using dql queries to retrieve data in the "logs and events".&lt;/P&gt;&lt;P&gt;Now the idea is to retrieve data from a "static" file that we can store somewhere in the environment. (If possible ?)&lt;/P&gt;&lt;P&gt;This static data contains a column "ID" who is the same with a column "ID" in the "log and events" and the goal is the match them so I can display both columns in the static and "log and events" tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's possible then how ?&lt;BR /&gt;If not, I had a suggestion to implement the logic in my custom app to add these additionnal columns but there will be perfomance issues &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your reply !&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 08:44:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247416#M952</guid>
      <dc:creator>AlexisGND</dc:creator>
      <dc:date>2024-06-05T08:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding static data to a custom app in Dynatrace</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247556#M954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/68059"&gt;@AlexisGND&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately this is currently not possible. But the are "workarounds" to it.&lt;/P&gt;
&lt;P&gt;1. option, cascading ifs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch events 
| fieldsAdd name = if((id==4),"Apple") 
| fieldsAdd name = if((id==4),"Banana", else:name) 
| fieldsAdd name = if((id==4),"Strawberry", else:name) 
| fieldsAdd name = if((id==4),"Watermelon", else:name) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. option lookup with json structure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch events
| lookup [data json:"""[
  {
    "id":1,
    "name": "Apple"
  },
  {
    "id":2,
    "name": "Banana"
  },
  {
    "id":3,
    "name": "Strawberry"
  },
  {
    "id":4,
    "name": "Watermelon"
  }
]"""], sourceField: id, lookupField: id&lt;/LI-CODE&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;
&lt;P&gt;3. option, ingest the data e.g. as (business)events and query it&lt;/P&gt;
&lt;P&gt;you can ingest your static data as business events and then join on it as part of your query.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch events
| join [
    fetch bizevents, timeframe:"2024-06-06T10:00:00Z/2024-06-06T15:00:00Z"
    | filter table == "mycustomtablename"  
  ], kind:inner, on: { id }, fields: { name }&lt;/LI-CODE&gt;
&lt;P&gt;things to note&lt;/P&gt;
&lt;P&gt;* when ingesting the business events, add a unique field (here table) to later easily filter on your data&lt;/P&gt;
&lt;P&gt;* specify the timeframe of the join query as the ingest timeframe of your table&lt;/P&gt;
&lt;P&gt;* if you need to update your "static" data, you just re-ingest everything again. When you need to query it, you need to re-adjust the timeframe of the join query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Sini&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 12:50:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247556#M954</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2024-06-06T12:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding static data to a custom app in Dynatrace</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247560#M955</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/38283"&gt;@sinisa_zubic&lt;/a&gt;&amp;nbsp;thanks for your reply !&lt;BR /&gt;I understand your answer.&lt;BR /&gt;By currently making a nodejs app on dynatrace in the "custom apps" for monitoring the logs, it tells me that i can make a json file who contains metadata and make it possible for this custom app to retrieve contexts data by searching on this json file or directly in the query like you did in the second option.&lt;/P&gt;&lt;P&gt;Thanks again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Alexis&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 13:08:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Adding-static-data-to-a-custom-app-in-Dynatrace/m-p/247560#M955</guid>
      <dc:creator>AlexisGND</dc:creator>
      <dc:date>2024-06-06T13:08:27Z</dc:date>
    </item>
  </channel>
</rss>

